From 776ae15fafe48dead8c41e087524841d53f6b3e4 Mon Sep 17 00:00:00 2001 From: Andy Cochran Date: Thu, 10 Mar 2016 16:47:14 -0500 Subject: [PATCH] fix error when -spacing is 0 --- scss/components/_button-group.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 0b9c53942..ea95e38b2 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -84,7 +84,11 @@ $buttongroup-expand-max: 6 !default; &:first-child:nth-last-child(#{$i}) { &, &:first-child:nth-last-child(#{$i}) ~ #{$selector} { display: inline-block; - width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); + @if #{$buttongroup-spacing} == '0' { + width: #{percentage(1 / $i)}; + } @else { + width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); + } margin-right: $buttongroup-spacing; } } -- 2.47.2