-
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
fix(menu): unable to set icon color dynamically #14161
fix(menu): unable to set icon color dynamically #14161
Conversation
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically. Fixes angular#14151.
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
@crisbeto this results in a very high specificity rule, is there a way we can do it without increasing the specificity so much? (there seems to be some g3 tests I missed that are failing because of this) |
In angular#14161 we had to tweak the selector for an icon inside a `mat-menu-item`, in order to fix an issue, however the new selector's specificity is a lot higher which can break people's overrides. These changes rework the approach to have a lower specificity selector.
In #14161 we had to tweak the selector for an icon inside a `mat-menu-item`, in order to fix an issue, however the new selector's specificity is a lot higher which can break people's overrides. These changes rework the approach to have a lower specificity selector.
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically. Fixes #14151.
In #14161 we had to tweak the selector for an icon inside a `mat-menu-item`, in order to fix an issue, however the new selector's specificity is a lot higher which can break people's overrides. These changes rework the approach to have a lower specificity selector.
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically. Fixes angular#14151.
In angular#14161 we had to tweak the selector for an icon inside a `mat-menu-item`, in order to fix an issue, however the new selector's specificity is a lot higher which can break people's overrides. These changes rework the approach to have a lower specificity selector.
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. |
Fixes not being able to set the color of a
mat-icon
inside amat-menu-item
dynamically.Fixes #14151.