Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button group refactoring and fixes #25395

Merged
merged 10 commits into from
Nov 4, 2018
25 changes: 8 additions & 17 deletions scss/_button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
z-index: 1;
}
}

// Prevent double borders when buttons are next to each other
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn,
.btn-group + .btn-group {
margin-left: -$btn-border-width;
}
}

// Optional: Group multiple button groups together for a toolbar
Expand All @@ -44,8 +36,10 @@
}

.btn-group {
> .btn:first-child {
margin-left: 0;
// Prevent double borders when buttons are next to each other
> .btn:not(:first-child),
> .btn-group:not(:first-child), {
margin-left: -$btn-border-width;
}

// Reset rounded corners
Expand Down Expand Up @@ -113,17 +107,14 @@
align-items: flex-start;
justify-content: center;

.btn,
.btn-group {
> .btn,
> .btn-group {
width: 100%;
}

> .btn + .btn,
> .btn + .btn-group,
> .btn-group + .btn,
> .btn-group + .btn-group {
> .btn:not(:first-child),
> .btn-group:not(:first-child), {
XhmikosR marked this conversation as resolved.
Show resolved Hide resolved
margin-top: -$btn-border-width;
margin-left: 0;
}

// Reset rounded corners
Expand Down