Skip to content

Commit

Permalink
fix(button): Un-break the build by referencing secondary theme prop…
Browse files Browse the repository at this point in the history
… instead of `accent` (#1156)

The build was accidentally broken in PR #1074 due to a merge conflict with PR #1116.
  • Loading branch information
acdvorak authored Aug 17, 2017
1 parent e36639f commit d3ff8fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/mdc-button/mdc-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@
line-height: 32px;
}

@each $theme-style in (primary, accent) {
@each $theme-style in (primary, secondary) {
// Needed for backward compatibility. Theme uses the term "secondary", but button still calls it "accent" for now.
$modifier: if($theme-style == "secondary", "accent", $theme-style);

// postcss-bem-linter: ignore
.mdc-button--#{$theme-style} {
.mdc-button--#{$modifier} {
$theme-value: map-get($mdc-theme-property-values, $theme-style);

@include mdc-ripple-base;
Expand Down

0 comments on commit d3ff8fc

Please sign in to comment.