Skip to content

Commit ac86667

Browse files
committed
refactor: css condition to scss condition
1 parent b8f40bb commit ac86667

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-
&:is(input, textarea) {
375+
@if ($selector == input or $selector == 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-
}
385384

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;
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+
}
391391
}
392392
}
393393

0 commit comments

Comments
 (0)