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:
- Use any dark theme
- Create a
mat-list-item or Toggle-type button, at least
- Set the disabled attribute on the component
- Observe that the background is a pretty jarring 100% black
Expected Behavior
The background of disabled controls should comply with the relevant section of the spec:
All disabled components are displayed using 12% White for container outlines and fills and 38% White for content such as labels or icons
Actual Behavior
The background of disabled components uses "black", per here. Of note, just above there the background color of disabled-button is rgba(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
- Angular: 11.1.2
- CDK/Material: 1.11.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Win10
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-themesdirectory? Seems kind of crazy not to have any.)Steps to reproduce:
mat-list-itemor 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-buttonisrgba(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