Skip to content

Commit

Permalink
refactor(input): counter styles (#818)
Browse files Browse the repository at this point in the history
* refactor: input counter styles

* fix: checked in by mistake
  • Loading branch information
mfranzke authored Apr 19, 2024
1 parent 50b65c9 commit 7204b95
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 6 additions & 4 deletions source/_patterns/01-elements/_form-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@
float: right;
}

&:not(:has(+ .description)) {
position: absolute;
// stylelint-disable-next-line property-no-unknown
inset-area: block-end span-inline-start;
@supports (inset-area: block-end span-inline-start) {
&:not(:has(+ .description)) {
position: absolute;
// stylelint-disable-next-line property-no-unknown
inset-area: block-end span-inline-start;
}
}

// Description styles
Expand Down
24 changes: 12 additions & 12 deletions source/_patterns/01-elements/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@
@extend %form-element-validation;
@extend %form-element-validation-programmatic;
/* stylelint-enable order/order */
}

&:is(
[type="email"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="url"]
)
+ label
+ output {
@extend %form-element-counter;
}
&:is(
[type="email"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="url"]
)
+ label
+ output {
@extend %form-element-counter;
}

&[type="search"] {
Expand Down
2 changes: 0 additions & 2 deletions source/_patterns/01-elements/textarea/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@

& + output {
@extend %form-element-counter;

float: right;
}

// ### Style variations
Expand Down

0 comments on commit 7204b95

Please sign in to comment.