-
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(material/toolbar): Update icon button color to match label text color token #30280
base: main
Are you sure you want to change the base?
Conversation
src/material/toolbar/toolbar.scss
Outdated
@@ -56,6 +56,8 @@ $height-mobile-portrait: 56px !default; | |||
@include token-utils.use-tokens( | |||
tokens-mat-toolbar.$prefix, tokens-mat-toolbar.get-token-slots()) { | |||
$color-token: token-utils.get-token-variable(container-text-color); | |||
// Update icon button color to match label text color for consistency while overriding. | |||
--mdc-icon-button-icon-color: $color-token; |
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.
We should do this through use-tokens
, instead of hardcoding the name. See in the next few lines how it's done for the outlined and text buttons.
c0be42b
to
1d35c12
Compare
@amysorto what is the status of this PR? it's not yet merged in the latest release :-( |
@crisbeto do you know why this PR is still open?It is a bit of a showstopper |
1d35c12
to
bf9e795
Compare
bf9e795
to
7f28810
Compare
There are hundreds of screenshots in g3 that wind up looking worse with this change. It seems to cause the exact issue its attempting to fix in some apps, likely because they're already working around it somehow. It'll take some work to land |
Fixes #30279
Note: this only affects icon buttons that have the
mat-unthemed
class.