-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Tagline: Support margins in theme.json #35323
Comments
I was able to reproduce this, but it is only the left and right margins that are overwritten, not top and bottom.
My theme.json style was:
|
Perhaps you could use padding as a work around for now? |
The issue in this case is that the block is inheriting margins from the theme's paragraph CSS, not from Gutenberg's. I could modify my theme CSS to include a |
The Site Tagline block now supports margin, so this can be closed. |
What problem does this address?
The site tagline block uses a paragraph element, which means it inherits the margins from CSS for paragraphs:
What is your proposed solution?
If we could control the margins in the theme.json, we could override these margins without CSS.
The text was updated successfully, but these errors were encountered: