From: Tony White Date: Thu, 14 Apr 2022 20:56:22 +0000 (-0500) Subject: Bug #12070: make _button-group.scss compatible with libsass 3.6.3 X-Git-Tag: v6.7.5^2~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12419%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Bug #12070: make _button-group.scss compatible with libsass 3.6.3 --- diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 92da7d269..4734408a1 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -241,10 +241,16 @@ $buttongroup-radius-on-each: true !default; } @each $name, $color in $button-palette { - $individual-selector: if($button-fill == $filling, null, ' #{$buttongroup-child-selector}.#{$name}'); - - &.#{$name} #{$buttongroup-child-selector}, #{$individual-selector} { - @include button-fill-style($filling, $color, auto, auto); + @if($button-fill != $filling) { + $individual-selector: ' #{$buttongroup-child-selector}.#{$name}'; + &.#{$name} #{$buttongroup-child-selector}, &#{$individual-selector} { + @include button-fill-style($filling, $color, auto, auto); + } + } + @else { + &.#{$name} #{$buttongroup-child-selector} { + @include button-fill-style($filling, $color, auto, auto); + } } } }