Closed
Description
Description
When using a single select, the selected option gets seconary-container backround color with on-secondary-container text color. When using a multiple select the backround color of selected options stays the same (because there already is a checkbox to show selected state), but the text color still changes to on-secondary-container making it potentially hard to read (depending on your theme).
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-zxlbij2m
- Select an option in the single select
- Select an option in the multiple select
- See invisible selected item in multiple select.
Expected Behavior
mat-option text color should only change when selected for single select
Actual Behavior
mat-option, in mat-select with multiple, text color changes when selected, making it hard/impossible to see on some color schemes.
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):