Skip to content

Commit 12df6c6

Browse files
Make rounded button groups work on actual buttons
Previously this only worked on anchor tags, however this should also work on actual buttons.
1 parent 588d71f commit 12df6c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scss/foundation/components/_button-groups.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ $button-bar-margin-right: emCalc(10px) !default;
3434

3535
// We use these to control left and right radius on first/last buttons in the group.
3636
@if $radius == true {
37-
&:first-child > a { @include side-radius($default-float, $button-radius); }
38-
&:last-child > a { @include side-radius($default-opposite, $button-radius); }
37+
&:first-child > a, &:first-child > button { @include side-radius($default-float, $button-radius); }
38+
&:last-child > a, &:last-child > button { @include side-radius($default-opposite, $button-radius); }
3939
}
4040
@else if $radius {
41-
&:first-child > a { @include side-radius($default-float, $radius); }
42-
&:last-child > a { @include side-radius($default-opposite, $radius); }
41+
&:first-child > a, &:first-child > button { @include side-radius($default-float, $radius); }
42+
&:last-child > a, &:last-child > button { @include side-radius($default-opposite, $radius); }
4343
}
4444

4545
// We use this to make the buttons even width across their container

0 commit comments

Comments
 (0)