-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/chips): refactor non-interactive actions to prevent adding click handlers #31664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deployed dev-app for 89a7e20 to: https://ng-dev-previews-comp--pr-angular-components-31664-dev-p2n59ez3.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
Deployed docs-preview for 89a7e20 to: https://ng-dev-previews-comp--pr-angular-components-31664-docs-x52jn1y4.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
61818c7
to
bec6583
Compare
52608f1
to
93bd21f
Compare
…ng click handlers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - this seems like a breaking change since the API is different, so it should be called out in the description of the PR with "BREAKING CHANGES:"
Fixes b/286287327 where non-interaction actions still have a click handler and thus get picked up as interactive by screen readers.
BREAKING CHANGE:
MatChipAction
no longer has anisInteractive
input, it is always interactive and newMatChipContent
should be used when not interactive.MatChipTrailingIcon
now extends fromMatChipContent
and can not be made interactive.