Skip to content

Support icons in mat-select trigger #17616

@calebegg

Description

@calebegg

Right now icons can be used in mat-option elements inside mat-select, but they don't show up on the trigger.

I know I can do this myself with mat-select-trigger, but it's complicated because it means referencing the logic for what to show both from the option and the trigger, and the default styling with an icon in the trigger is pretty bad; it expands the whole mat-form-field's height, and it's not easy to work around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/selectfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions