Skip to content

Commit 8b3065a

Browse files
authored
fix: issue with floating textarea valid border color (#5283)
1 parent e8d58bd commit 8b3065a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/components/src/styles/internal/_form-components.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ $db-min-inline-size: var(
7575
// Workaround until the :blank pseudo-class is widely supported; then prefer targeting that pseudo-class.
7676
#{$selector} {
7777
&:is(
78-
[type="date"],
79-
[type="datetime-local"],
80-
[type="month"],
81-
[type="week"],
82-
[type="time"]
83-
):not(:user-valid)::-webkit-datetime-edit {
78+
[type="date"],
79+
[type="datetime-local"],
80+
[type="month"],
81+
[type="week"],
82+
[type="time"]
83+
):not(:user-valid)::-webkit-datetime-edit {
8484
@content;
8585
}
8686
}
@@ -207,10 +207,6 @@ $db-min-inline-size: var(
207207
$variant: "critical";
208208
}
209209

210-
@if $selector == textarea {
211-
--db-textarea-read-only: var(--db-#{$variant}-bg-basic-level-1-default);
212-
}
213-
214210
@if $selector != textarea {
215211
@extend %db-#{$variant}-variables;
216212
/* stylelint-disable-next-line at-rule-empty-line-before */
@@ -241,6 +237,10 @@ $db-min-inline-size: var(
241237
--db-adaptive-on-bg-basic-emphasis-60-default: var(
242238
--db-#{$variant}-on-bg-basic-emphasis-60-default
243239
);
240+
241+
&[data-variant="floating"]::after {
242+
border-color: var(--db-#{$variant}-on-bg-basic-emphasis-70-default);
243+
}
244244
}
245245

246246
#{$selector},

0 commit comments

Comments
 (0)