I have a CSS class defined in my module.css file that alters the color of yyyy when an input is in range:
.field input[type='date']:in-range::-webkit-datetime-edit-year-field {
color: transparent;
}
This styling works as expected when the input is enabled. However, when the input is disabled, the default color set by Google Chrome for that field is displayed.
I have attempted several variations to target the datetime-edit-year-field when the input is disabled, but none have been successful:
.field input:disabled[type='date']:in-range::-webkit-datetime-edit-year-field {
color: transparent;
}
.field input[type='date']:disabled:in-range::-webkit-datetime-edit-year-field {
color: transparent;
}
.field input[type='date']:in-range::-webkit-datetime-edit-year-field:disabled {
color: transparent;
}
How can I effectively style the datetime-edit-year-field when the input is disabled?