components icon indicating copy to clipboard operation
components copied to clipboard

fix(material/list): align color scheme between single and multi selection list

Open crisbeto opened this issue 3 years ago • 0 comments

MDC has the mdc-list-item--selected class which we were setting only on single selection mat-list-option to indicate using color that they're selected. After the recent change to indicate selection using a radio button, these look weird because the radio button inherits the list item theme palette while the background of the item stays as primary.

For reference: Screenshot 2022-11-24 at 09 33 20

These changes resolve the issue by treating single selection and multi-selection lists the same.

Note: an alternative I was considering was to change the color so that it matches the radio button color, but then the appearance of the single selection list would be inconsistent with the multi-selection list.

crisbeto avatar Nov 24 '22 08:11 crisbeto