Skip to content

Commit 8c0bc9d

Browse files
committed
Revert "refactor: css condition to scss condition"
This reverts commit ac86667.
1 parent ac86667 commit 8c0bc9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ $input-valid-types:
372372
background-color: colors.$db-adaptive-bg-basic-transparent-semi-hovered;
373373
}
374374

375-
@if ($selector == input or $selector == textarea) {
375+
&:is(input, textarea) {
376376
/* see https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing */
377377
&[data-field-sizing="content"] {
378378
field-sizing: content;
@@ -381,13 +381,13 @@ $input-valid-types:
381381
&[data-field-sizing="fixed"] {
382382
field-sizing: fixed;
383383
}
384+
}
384385

385-
&:not(:disabled):read-only {
386-
background-color: var(
387-
--db-textarea-read-only,
388-
#{colors.$db-adaptive-bg-basic-transparent-full-default}
389-
) !important;
390-
}
386+
&:is(input, textarea):not(:disabled):read-only {
387+
background-color: var(
388+
--db-textarea-read-only,
389+
#{colors.$db-adaptive-bg-basic-transparent-full-default}
390+
) !important;
391391
}
392392
}
393393

0 commit comments

Comments
 (0)