Skip to content

Commit

Permalink
fixup! refactor(material/button): switch raised button to tokens them…
Browse files Browse the repository at this point in the history
…ing API
  • Loading branch information
wagnermaciel committed Sep 20, 2023
1 parent 4153c39 commit 94adbf2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/material/button/_button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,17 @@
}

.mat-mdc-raised-button {
$default-color-tokens: tokens-mdc-button-protected.get-color-tokens($theme, $surface, $on-surface);
$default-color-tokens: tokens-mdc-button-protected.get-color-tokens(
$theme,
$surface,
$on-surface
);
$primary-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $primary, $on-primary);
$accent-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $accent, $on-accent);
$warn-color-tokens: tokens-mdc-button-filled.get-color-tokens($theme, $error, $on-error);

&.mat-unthemed {
@include mdc-button-protected-theme.theme($default-color-tokens, );
@include mdc-button-protected-theme.theme($default-color-tokens);
}

&.mat-primary {
Expand All @@ -174,7 +178,7 @@
// TODO(wagnermaciel): Remove this workaround when b/301126527 is resolved
@include mdc-helpers.disable-mdc-fallback-declarations {
@include mdc-elevation-theme.elevation(2);

&:hover, &:focus {
@include mdc-elevation-theme.elevation(4);
}
Expand Down

0 comments on commit 94adbf2

Please sign in to comment.