From: Nicolas Coden Date: Mon, 25 Dec 2017 10:29:53 +0000 (+0100) Subject: fix: allow to use inherit/global font-weight for button X-Git-Tag: v6.6.0~3^2~337^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10691%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: allow to use inherit/global font-weight for button --- diff --git a/scss/components/_button.scss b/scss/components/_button.scss index 7c9fc0533..4e21c817f 100644 --- a/scss/components/_button.scss +++ b/scss/components/_button.scss @@ -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 {