File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/components/src/styles/internal Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ $input-valid-types:
372
372
background-color : colors .$db-adaptive-bg-basic-transparent-semi-hovered ;
373
373
}
374
374
375
- @if ( $selector == input or $selector == textarea) {
375
+ & : is ( input , textarea ) {
376
376
/* see https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing */
377
377
&[data- field- sizing=" content" ] {
378
378
field- sizing: content ;
@@ -381,13 +381,13 @@ $input-valid-types:
381
381
& [data-field-sizing = " fixed" ] {
382
382
field-sizing : fixed ;
383
383
}
384
+ }
384
385
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 ;
391
391
}
392
392
}
393
393
You can’t perform that action at this time.
0 commit comments