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:
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
You can’t perform that action at this time.
0 commit comments