We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 331e8d2 commit 995a926Copy full SHA for 995a926
src/components/input-field/partial-styles/_readonly.scss
@@ -39,3 +39,14 @@
39
}
40
41
42
+
43
+:host([readonly]) {
44
+ .mdc-text-field__input {
45
+ // Override browser default styling for readonly inputs to ensure proper visibility
46
+ // - opacity: 1 prevents browsers from making readonly text appear faded/dimmed
47
+ // - -webkit-text-fill-color ensures consistent text color across WebKit browsers
48
+ // (overrides browser autofill colors and disabled state styling)
49
+ opacity: 1;
50
+ -webkit-text-fill-color: shared_input-select-picker.$input-text-color;
51
+ }
52
+}
0 commit comments