Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(material/toolbar): Update icon button color to match label text c…
…olor token
amysorto committed Jan 7, 2025
commit 1d35c12c16364f03ae687ce5778a77839cbc3d86
8 changes: 8 additions & 0 deletions src/material/toolbar/toolbar.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use '@angular/cdk';
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/toolbar' as tokens-mat-toolbar;
@use '../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button;
@use '../core/tokens/m2/mdc/text-button' as tokens-mdc-text-button;
@use '../core/tokens/m2/mdc/outlined-button' as tokens-mdc-outlined-button;
@use '../core/style/variables';
@@ -69,6 +70,13 @@ $height-mobile-portrait: 56px !default;
$token: token-utils.get-token-variable-name(label-text-color);
#{$token}: #{$color-token};
}

@include token-utils.use-tokens(
tokens-mdc-icon-button.$prefix, tokens-mdc-icon-button.get-token-slots()) {
// Update icon button color to match label text color for consistency while overriding.
$token: token-utils.get-token-variable-name(icon-color);
#{$token}: #{$color-token};
}
}
}