-
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
Allow left/right/center alignments when a layout is defined #32810
Conversation
Size Change: +11 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
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.
This works well in my testing. As noted, left/right alignments will expand outside of the text column by default:
I think that's a totally fine treatment, but if that's not what you want, it can be easily remedied by grouping content:
In general, this feels like a good solution to me, and gives users more flexibility. 👍
closes #30568
When we introduced the layout config, we made the decision to remove left/right alignments from containers with a defined layout, the idea was that we can't left/right align inside the "content size" area, so to avoid confusing users, we shouldn't propose these options.
Apparently, removing these is even more confusing and some themes do expect float alignments to work like that (left/right align at the edge of the container), so we're bringing these in this PR
Testing instructions
Please help test this with several themes. It requires a theme with theme.json though.