-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Archives: Update padding for archives block to remain consistent with list
#69008
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
Archives: Update padding for archives block to remain consistent with list
#69008
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 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. |
It looks like the removed styles were intentionally applied here: #9347, but I wonder if these are required as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I agree removing these styles as well.
The default 40px left padding provided by browsers is a fixed value, and the 2.5em applied to the Archive block is a relative value, so the margins may not match visually. TT5 example:
It looks like the removed styles were intentionally applied here: #9347
Perhaps this style was needed back then (about 6 years ago!).
… `list` (#69008) * Archives: Update padding for archives block to remain consistent with `list` * Archives: Move padding from `editor.scss` to `style.scss` * refactor: remove `padding-left` rule and use `ul` fallback Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: iamtakashi <iamtakashi@git.wordpress.org>
What, Why and How?
Closes #69007
This PR removes redundant styles applied for the
ul
element withinArchives
block.Ref:
gutenberg/packages/block-library/src/archives/editor.scss
Lines 1 to 3 in 693e315
This style should be considered redundant because, by default,
ul
adds a40px
padding usingpadding-inline-start
which matches the2.5em
padding in the above rule thereby making it redundant.Testing Instructions
Empty Theme
as the Active Theme.post-edit
page.Archive
,List
, andCategories List
blocks in order.Screenshots