-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Columns: add min and max width settings for responsive control #40870
Comments
I think that before doing it at the columns block level, this should be easier to set globally at the theme level. |
Renaming this issue (hope that's okay) to focus it a bit more around allowing for min and max width settings. This means that essentially a user could define a minimum number of columns, like 2, and a max, like 6, which would mean that on mobile the columns would collapse down to 2 rather than stacking. |
Calling on @WordPress/block-themers as it would be helpful to have some folks explain how you would achieve this with regular CSS to get a clearer idea of what settings/block supports need to be implemented. If anyone has time, please chime in directly on this issue! |
Not a perfect solution, but maybe a Grid block variation would help? a05df6185771035660ef20368c9be1b9.mp4By the way, I understand that there are many suggestions regarding responsive UI. |
I've found myself wanting this control for grid more than I have for the columns block personally! |
@MaggieCabrera I think we need it in both! The Grid experiment allows for this because it relies on a combination of max columns and minimum column width. |
What problem does this address?
The
<Columns>
block is really useful in constructing responsive layouts, especially when they are nested together. However, there are times when you want columns to stack before themobile
breakpoint is triggered to avoid some awkward layouts.What is your proposed solution?
Add min and max support to the Columns block so a user could define a minimum number of columns, like 2, and a max, like 6, which would mean that on mobile the columns would collapse down to 2 rather than stacking.
The text was updated successfully, but these errors were encountered: