]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: allow to use inherit/global font-weight for button 10691/head
authorNicolas Coden <nicolas@ncoden.fr>
Mon, 25 Dec 2017 10:29:53 +0000 (11:29 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Mon, 25 Dec 2017 10:29:53 +0000 (11:29 +0100)
scss/components/_button.scss

index 7c9fc05332b7a6ea1b453819cba1346086c29e4a..4e21c817ff71d352fff044a27c68588817138b92 100644 (file)
@@ -11,8 +11,9 @@
 $button-font-family: inherit !default;
 
 /// Font weight for button elements.
+/// Ignored if null (default)
 /// @type Font-Weight
-$button-font-weight: inherit !default;
+$button-font-weight: null !default;
 
 /// Padding inside buttons.
 /// @type List
@@ -95,9 +96,7 @@ $button-responsive-expanded: false !default;
   vertical-align: middle;
   margin: $button-margin;
   font-family: $button-font-family;
-  @if ($button-font-weight != inherit && $button-font-weight != $global-weight-normal) {
-    font-weight: $button-font-weight;
-  }
+  font-weight: $button-font-weight;
 
   @if (type-of($button-padding) == 'map') {
     @each $size, $padding in $button-padding {