-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Query Loop: Remove unused styles #68615
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. |
Size Change: -460 B (-0.02%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
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.
Thanks, @t-hamano!
I couldn't spot any regressions between this branch and trunk.
@Mamaduka Thanks for the review! |
What?
This PR removes unused styles in the Query Loop block.
Why?
Code quality.
How?
.block-library-query-toolbar__popover
This CSS was needed when the query filter control was in the block toolbar: #26992
Then the element with this CSS class was deleted: https://github.com/WordPress/gutenberg/pull/58207/files#diff-168766f853e5687fa469d2eee2d2d9e0c351aed334a937a42f8349a76ab5fe2cL32
.block-library-query__pattern-selection-content
It appears that at the time the PR in which this CSS was added was submitted, no elements with this CSS class existed: https://github.com/WordPress/gutenberg/pull/38997/files#diff-f0ac68acacc980ececd13a033228c4fef1d62982d9c0c4b6efee0bad5c993b98R9
.block-library-query-toolspanel__design
It appears that at the time the PR in which this CSS was added was submitted, no elements with this CSS class existed: https://github.com/WordPress/gutenberg/pull/66993/files#diff-f0ac68acacc980ececd13a033228c4fef1d62982d9c0c4b6efee0bad5c993b98R48
.wp-block-query__enhanced-pagination-notice
This CSS was needed to reset the margins of the Notice component: https://github.com/WordPress/gutenberg/pull/54455/files?diff=unified&w=0#diff-d8002d815f5181ff6567ce80f0771f5c725ad0ea5333cd68bd3e7d7cd47650e4R42
Then this Notice component has been removed: b483df2#diff-d8002d815f5181ff6567ce80f0771f5c725ad0ea5333cd68bd3e7d7cd47650e4L39
Testing Instructions