From d3ff8fc8edd3328a75399171ce3a5324ef35a3f8 Mon Sep 17 00:00:00 2001 From: "Andrew C. Dvorak" Date: Thu, 17 Aug 2017 16:49:19 -0700 Subject: [PATCH] fix(button): Un-break the build by referencing `secondary` theme prop instead of `accent` (#1156) The build was accidentally broken in PR #1074 due to a merge conflict with PR #1116. --- packages/mdc-button/mdc-button.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/mdc-button/mdc-button.scss b/packages/mdc-button/mdc-button.scss index 28aabce1459..573e37de6c7 100644 --- a/packages/mdc-button/mdc-button.scss +++ b/packages/mdc-button/mdc-button.scss @@ -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;