-
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
Advanced Margin and Padding Editing for Block #69358
Comments
can we do this in EVERY BLOCK ? |
yes, for most. here is an overview: #43243 |
Can we close this issue as a duplicate of #43243? Is there something missing in the current margin/padding UI itself? |
Could we get the ability to use clamp in the advanced options? |
I think this is certainly useful, so we might leave this issue open. FWIW, I also think the suggestions regarding responsive design are worth noting. |
I am using clamp in my spacing variables in the theme.json already. So it does work already, it's only that the interface doesn't support it yet. |
Yes, we can define spacing variables but I was looking into the codebase. I find out that in order to implement this feature we need to modify |
Currently, the management of internal (padding) and external (margin) spacing for blocks in Gutenberg is limited and not very intuitive. Adding an advanced interface similar to Elementor would allow users to have precise control over block spacing without needing custom CSS.
Ideally, each block should have a dedicated section in its settings to manage individual margins and padding for each side (top, bottom, left, right). A linking option to apply the same margin or padding to all sides, along with configurable units (px, %, em, rem, etc.), would significantly enhance the user experience.
Real-time preview of spacing adjustments would save time and eliminate the need for blind testing. This improvement would give users better control over their layouts while making Gutenberg more competitive with visual page builders.
The text was updated successfully, but these errors were encountered: