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
Utility for the flex-grow property #21944
Comments
IMO this would be very useful and I've already encountered several use cases for it. |
I keep finding more use cases for a flex grow utility.. |
I would also appreciate this functionality. Bootstrap lets you flex-grow: 1 in horizontal layout using col class, but this functionality is not present for vertical layouts. |
In my projects, I've added a fill class flex: 1 to cover this since I utilize some fixed width columns and rows inside. |
I need also a flex-grow-0 utility for columns that should grow on mobile but not in desktop resolutions like:
|
I would definitely use this! :D |
+1. We're currently setting and using our own utility for this, but should definitely be part of default utility classes. Edit: For some of us (myself included) https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_flex.scss#L19 Apparently it was dropped for an unknown reason (mentioned here: #25375). |
100% back this |
We have a layout where |
+1 I just created my own help class to do just this. |
I think there could be an utility class like
f-grow-1
that would correspond to CSS ruleflex-grow: 1
. (possibly alsof-grow-2
,f-grow-3
, etc.)I've been really enjoying working with the Bootstrap 4 flexbox utility classes, but I feel this one is still missing and could be very useful for a lot of people to do stuff like this:
https://stackoverflow.com/questions/29467660/flexbox-row-how-to-stretch-children-to-fill-cross-axis
If it's a stupid idea, please let me know why.
The text was updated successfully, but these errors were encountered: