-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
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
Add align-self: center
to buttons for improved rendering in flex containers
#34834
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels safe to me, thanks for submitting this :)
scss/_buttons.scss
Outdated
|
||
//button size not respected when direct child of div with d-flex #34833 | ||
align-self: center; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop the line breaks and comments, this is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm into it!
align-self: center
to buttons for improved rendering in flex containers
This was a breaking change. Can't you just apply
|
Agreed about breaking change. Yes, this makes buttons inside button groups not stretch to fill height under certain circumstances. |
This broke most of the button styles in our application. I strongly suggest highlighting this change more prominently in the Changelog (possibly even mark as a breaking change). This is not what we would've expected of a minor patch release. Anyway, keep up the good work ✌️ |
@wKovacs64 @719media @andreas-venturini Please open an issue to highlight broken cases, as it seems we missed them. If that's breaking too much, we might revert it. |
Fixes #34833
When placing a button with size classes as direct child of a div with d-flex, size is not respected
Produces

While
Produces

Solution:
According to W3Schools
the default value of align-items is stretch which might be causing this issue.
I simply added align-self to center to give a default value to center if the buttons are a direct child of flex.