Skip to content

Commit

Permalink
fix segmented buttons (#21716)
Browse files Browse the repository at this point in the history
* fix segmented buttons

changed flex-direction to row
centering is now done by align-items instead of justify-content

this way there is no need for flex property on the .btn inside .btn-group

* Update _input-group.scss
  • Loading branch information
gijsbotje authored and mdo committed Jan 21, 2017
1 parent ade657a commit 12b22eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scss/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
.input-group .form-control {
// Vertically centers the content of the addons within the input group
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

&:not(:first-child):not(:last-child) {
@include border-radius(0);
Expand Down Expand Up @@ -144,8 +143,6 @@
// element above the siblings.
> .btn {
position: relative;
// Vertically stretch the button and center its content
flex: 1;

+ .btn {
margin-left: (-$input-btn-border-width);
Expand Down

0 comments on commit 12b22eb

Please sign in to comment.