Skip to content

bug(chips): matChipRemove should not apply to icons #23463

@jelbourn

Description

@jelbourn

All of our examples that use matChipRemove apply directly to mat-icon, which is not great for a11y; instead, the directive should go on a button that contains an icon.

Alternatively, we can project <mat-icon matChipRemove> into a button within the component. This fix might be preferable since it will "fix" anyone who has copied this example so far.

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)GThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaroundarea: material/chipsdocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions