-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Rework Button Group to not use borders #7933
Conversation
Also makes button group spacing look good on backgrounds not matching |
Does |
Exactly. The buttons have a space character's width between them. If the font size is zero, that space disappears. |
One piece of feedback, the sizing classes shouldn't print inside the |
D'oh! I'll work on that. Thanks, @gakimball. |
@gakimball Take a look. You'll notice I redid the button group sizes like this: @each $size, $value in $button-sizes {
&.#{$size} #{$buttongroup-child-selector} { font-size: $value; }
} This allows user-defined button sizes. A similar method could be used for all button sizing. For instance, lines 197–199 in @each $size, $value in $button-sizes {
&.#{$size} { font-size: $value; }
} instead of… &.tiny { font-size: map-get($button-sizes, tiny); }
&.small { font-size: map-get($button-sizes, small); }
&.large { font-size: map-get($button-sizes, large); } Caveat: It adds a |
Definitely interested in that. You can remove @each $size, $value in map-remove($button-sizes, default) {
} |
@gakimball Done. This'll close #7665, #7844, |
@andycochran Solid, thanks so much for putting it together! |
Rework Button Group to not use borders
The font-size: 0 trick doesn't work in the android browser pre Jellybean. |
@slavanga We decided in #7665 (comment) that this was acceptable fallout in oder to fix a few other bugs in all browsers. |
@andycochran Alright, that sounds reasonable. |
This PR implements margin for the space between buttons, instead of faking it with borders. It also nixes the use of table display & floats, instead using
inline-block
.Let me know if you have feedback.
Woot!
-Andy
Related issues: #7665, #7844