-
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 Block: Disable the 50/50 view #37252
Comments
I think this issue uncovers the real problems of not having control over what happens on certain viewports. I know that themes can use CSS to achieve what the editor can't, but when it comes to designing the layout of the site this becomes a glaring issue. I can think of a few cases besides what this issue is explaining, for example, on a two-column layout for a site, with the sidebar being on the left, in most cases on mobile devices you want to have the sidebar to show AFTER the content on the right column, not before, even if the columns wrap correctly on all viewports. @jasmussen @youknowriad what do you think? I suppose problems like these would be solved once the layout interface matures and offers more options like grid so we don't have to use the column blocks for the main layout of a site instead |
Ideally we'd have a "minimum column width" control... I explored that option about 6 months ago (prototype code can be found on #33330) and it can work fine. |
I would echo Ari's thoughts: we should strive to simplify the block's responsive behavior to be smarter. If we do this right, potentially we can provide collapsing rules through the CSS that handle this directly. The examples shown in this codepen are a bit exploratory, but they do show how far we can go. The added challenge here as Maggie outlines, is when you want the left sidebar to show up after the content of the right sidebar on mobile. I'm curious what's the best practice in plain HTML markup here, because it seems like both |
It looks like the removal of the |
Yes I think so! |
What problem does this address?
At "tablet" sizes, the columns block snaps to a 50/50 view:
(From the Stewart theme: Automattic/themes#4369)
When columns are used for structural elements of the page this is not always what we need. It is possible to disable this by turning off "stack on mobile", but that setting is still useful in these scenarios.
What is your proposed solution?
It would be good to have a block attribute which would disable this behaviour on the block. It needn't be surfaced in the UI.
The text was updated successfully, but these errors were encountered: