Skip to content

Commit 995a926

Browse files
LucyChyzhovaKiarokh
authored andcommitted
fix(partial-styles): make readonly state readable on mobile devices
1 parent 331e8d2 commit 995a926

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/input-field/partial-styles/_readonly.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,14 @@
3939
}
4040
}
4141
}
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

Comments
 (0)