Fixes Accordion block width issue when applying padding#71809
Fixes Accordion block width issue when applying padding#71809t-hamano merged 2 commits intoWordPress:trunkfrom
Conversation
|
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @minaldiwan. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
19abf71 to
37b2a88
Compare
t-hamano
left a comment
There was a problem hiding this comment.
Thanks for the PR!
Can you add a comment on why this style is required? For example:
gutenberg/packages/block-library/src/avatar/style.scss
Lines 1 to 3 in 84a627f
Done |
) * Fix Accordion block width issue * added comment for css --------- Unlinked contributors: minaldiwan. Co-authored-by: t-hamano <[email protected]> Co-authored-by: theminaldiwan <[email protected]>
What?
Closes #71803
Why?
When changes padding from accordion block settings, the width of block is not align with other blocks.
How?
When adding
box-sizing: border-boxstyling to parent of this block.wp-block-accordion, then width is looking similar to other blocks.Screenshots
Before
After