Closed thw0rted closed 1 year ago
This should get fixed when we publish stable versions of our MDC-based components, which will resolve a wide variety of spec issues.
Any update on the publishing of MCD-based components? For now I'm using the following fix - where I apply global styles in my styles.scss file for the dark theme class 'my-dark-mode'.
.my-dark-mode .mat-list-item-disabled {
background-color: rgba(white, 0.12);
.mat-list-item-content{
background-color: rgba(white, 0.38);
color: rgba(white, 0.38);
}
}
Hello @thw0rted ,
We published the MDC-based components in v15. Does upgrading to v15 resolve this issue for you?
-Zach
Closing this issue due to no recent activity, if this is still an issue please create a new issue with a reproduction.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Reproduction
I'd like to make a StackBlitz to illustrate this but I can't seem to make a dark-theme example. If anybody can give me a sample to fork that uses a dark theme, it'd be dead easy to include some examples of affected components. (Also: should I open a separate ticket to ship at least one dark theme in the
prebuilt-themes
directory? Seems kind of crazy not to have any.)Steps to reproduce:
mat-list-item
or Toggle-type button, at leastExpected Behavior
The background of disabled controls should comply with the relevant section of the spec:
Actual Behavior
The background of disabled components uses "black", per here. Of note, just above there the background color of
disabled-button
isrgba(white, 0.12)
which is correct. It's possible that other backgrounds also fail to match spec -- I only started digging because disabled list items look pretty rough.Environment