-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multiple Blocks: Padding setting in JSON is no longer working #61011
Comments
@tellthemachines if I remember correctly, you have been doing work around specificity. Mind taking a look? |
@iamtakashi which theme are you testing with? I can't find that |
Testing Instructions
WP6.5Latest GutenbergThe fundamental problem may be that the List block's selector affects other blocks. #56469 has been submitted to add the block class name to the List block selector. |
Oh, good detective work there @t-hamano ! Yes, that's a side-effect of the specificity reduction but ultimately the best solution would be a classname for the list block. |
Hi @tellthemachines @t-hamano, Thanks for looking into it. Yes, I usually set padding to the List block like TT4 and other list type blocks accordingly, and the padding value can vary depending on the block. |
It's also worth noting that Gutenberg's reset stylesheet for the iframed editor will have a non-zero specificity as well. Any stylesheet that adds styles for |
Description
This is likely caused by the work reducing the specificity, but now, with the Gutenberg plugin active, the default overrides the padding for the blocks that use unordered or ordered list elements.
I've noticed this issue in the following blocks, but there might be more.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: