From 800e8f3f4e2f5570a127e2b8d6b326799d15679b Mon Sep 17 00:00:00 2001 From: Andy Cochran Date: Fri, 29 Apr 2016 09:37:57 -0400 Subject: [PATCH] prevent rounding bug causing last expanded button in group to wrap --- scss/components/_button-group.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 12e9911be..8d14b67e1 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -80,12 +80,11 @@ $buttongroup-expand-max: 6 !default; &:first-child:nth-last-child(#{$i}) { &, &:first-child:nth-last-child(#{$i}) ~ #{$selector} { display: inline-block; - @if #{$buttongroup-spacing} == '0' { - width: #{percentage(1 / $i)}; - } @else { - width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); - } + width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing}); margin-#{$global-right}: $buttongroup-spacing; + &:last-child { + margin-#{$global-right}: $buttongroup-spacing * -$buttongroup-expand-max; + } } } } -- 2.47.2