Skip to content

bug(Select): option-overrides style does not propagate down to multi-select options #32618

@5am4llen

Description

@5am4llen

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

// theme.scss

@include mat.option-overrides((
    selected-state-label-text-color: red,
));

When multiple selection is enabled in a mat-select component, the options override styling for selected label text color is not applied to the selected options in the drop-down.

Reproduction

StackBlitz link: link
Steps to reproduce:

  1. select one or more options from toppings
  2. select an option from Favorite food

Expected Behavior

the selected option labels in both drop down menus will appear red.

Actual Behavior

The selected option labels in the favorite food drop down turn red, and the selected options labels under toppings remain the default green color.

Environment

  • Angular: 20.3.15
  • CDK/Material: 20.2.14
  • Browser(s): firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Rocky Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions