Skip to content

Commit

Permalink
Use calc in button group with singel child
Browse files Browse the repository at this point in the history
Without calc the singel button in a button group would overlap the grid because of set negative margin. This becomes noticeable when the spacing is set to, for example, the grid gutter.
  • Loading branch information
TheBnl authored Jan 9, 2018
1 parent 9fcea0f commit ec793f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/components/_button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $buttongroup-radius-on-each: true !default;
@else {
// One child
&:first-child:last-child {
width: 100%;
width: calc(100% - #{$spacing});
}

// Two or more childreen
Expand Down

0 comments on commit ec793f9

Please sign in to comment.