]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Bug #12070: make _button-group.scss compatible with libsass 3.6.3 12419/head
authorTony White <tjw@webteam.net>
Thu, 14 Apr 2022 20:56:22 +0000 (15:56 -0500)
committerTony White <tjw@webteam.net>
Thu, 14 Apr 2022 20:56:22 +0000 (15:56 -0500)
scss/components/_button-group.scss

index 92da7d269dc0961117822d2e6cdbdfa85668e227..4734408a137f2c04c8d915356cdf79e1da316240 100644 (file)
@@ -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);
+            }
           }
         }
       }