Skip to content

Commit 7204b95

Browse files
authored
refactor(input): counter styles (#818)
* refactor: input counter styles * fix: checked in by mistake
1 parent 50b65c9 commit 7204b95

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

source/_patterns/01-elements/_form-elements.scss

+6-4
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@
117117
float: right;
118118
}
119119

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

126128
// Description styles

source/_patterns/01-elements/input/input.scss

+12-12
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@
146146
@extend %form-element-validation;
147147
@extend %form-element-validation-programmatic;
148148
/* stylelint-enable order/order */
149+
}
149150

150-
&:is(
151-
[type="email"],
152-
[type="password"],
153-
[type="search"],
154-
[type="tel"],
155-
[type="text"],
156-
[type="url"]
157-
)
158-
+ label
159-
+ output {
160-
@extend %form-element-counter;
161-
}
151+
&:is(
152+
[type="email"],
153+
[type="password"],
154+
[type="search"],
155+
[type="tel"],
156+
[type="text"],
157+
[type="url"]
158+
)
159+
+ label
160+
+ output {
161+
@extend %form-element-counter;
162162
}
163163

164164
&[type="search"] {

source/_patterns/01-elements/textarea/textarea.scss

-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@
6363

6464
& + output {
6565
@extend %form-element-counter;
66-
67-
float: right;
6866
}
6967

7068
// ### Style variations

0 commit comments

Comments
 (0)