-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(MatChips): matChipRemove too restrictive #28467
Comments
@topdev658 The issue was about using a regular custom Angular component inside the matChipRemove button label, not adding custom svgs. |
Currently the remove icon is a bit brittle, because the size is set to `inherit` which only works if there's a `button` around it. These changes set the specific width instead. Fixes angular#28467.
Currently the remove icon is a bit brittle, because the size is set to `inherit` which only works if there's a `button` around it. These changes set the specific width instead. Fixes #28467.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is this a regression?
The previous version in which this bug was not present was
No response
Description
matChipRemove
is a directive that can be used on a button in order to delete a chip from a chip grid.However the icon must follow the exact selector path
button > mat-icon > svg
.It is impossible to use a custom component as icon
Reproduction
StackBlitz link:
https://stackblitz.com/edit/a1vrgk?file=src%2Fexample%2Fchips-autocomplete-example.html
Steps to reproduce:
Expected Behavior
Any custom icon component should be rendered correctly
Actual Behavior
Any custom component is invisible. Only the codepath
button > mat-icon > svg
gets rendered.Environment
The text was updated successfully, but these errors were encountered: