Accordion Heading: Remove the padding from the heading when it has a background color#72046
Conversation
t-hamano
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the quick fix.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -684 B (-0.03%) Total Size: 1.95 MB
ℹ️ View Unchanged
|
| "padding": true | ||
| }, | ||
| "__experimentalSkipSerialization": true | ||
| "__experimentalSkipSerialization": true, |
There was a problem hiding this comment.
Thank you, I forgot to skip serialization for padding.
|
I don't think this update makes sense as it's now not possible to add any padding as default styles from theme.json file. |
|
Linking this issue #72776 for visibility |
What?
Remove the padding from the Accordion heading block.
Why?
When the block has a background color, a padding applied from the heading element. We don't want that in the case as it is impossible override with the padding for this block.
How?
Using a stronger CSS selector to override the default padding
Testing Instructions
Screenshots or screencast