Skip to content

Conversation

@crisbeto
Copy link
Member

Fixes not being able to set the color of a mat-icon inside a mat-menu-item dynamically.

Fixes #14151.

Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically.

Fixes angular#14151.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Nov 15, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 15, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Nov 15, 2018
@mmalerba mmalerba merged commit 48e4f65 into angular:master Dec 4, 2018
@mmalerba
Copy link
Contributor

mmalerba commented Dec 5, 2018

@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)

crisbeto added a commit to crisbeto/material2 that referenced this pull request Dec 5, 2018
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.
mmalerba pushed a commit that referenced this pull request Dec 5, 2018
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.
mmalerba pushed a commit that referenced this pull request Dec 10, 2018
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically.

Fixes #14151.
mmalerba pushed a commit that referenced this pull request Dec 10, 2018
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.
josephperrott pushed a commit to josephperrott/components that referenced this pull request Jan 14, 2019
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically.

Fixes angular#14151.
josephperrott pushed a commit to josephperrott/components that referenced this pull request Jan 14, 2019
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.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(menu): mat-menu-item > mat-icon - color attribute doesn't work with dynamic assignment

4 participants