-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
List view: fix miscolored icons #65707
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: -129 B (-0.01%) Total Size: 1.77 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.
Makes sense, thanks @t-hamano 👍
Is there a need to include other styles specified for button > svg? gutenberg/packages/components/src/button/style.scss Lines 374 to 380 in 3155ab7
|
No, I don't think so. One of the instances where the |
While the |
Thank you! I think we can merge this PR in its current state :) |
* List view: fix miscolored icons * Add forced-colors media query Co-authored-by: t-hamano <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: jameskoster <[email protected]>
* List view: fix miscolored icons * Add forced-colors media query Co-authored-by: t-hamano <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: jameskoster <[email protected]>
This reverts commit a5d48bc.
* List view: fix miscolored icons * Add forced-colors media query Co-authored-by: t-hamano <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: jameskoster <[email protected]>
@t-hamano In the Should this PR be backported? |
* List view: fix miscolored icons * Add forced-colors media query Co-authored-by: t-hamano <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: ciampo <[email protected]> Co-authored-by: jameskoster <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: e37cd2c |
Fixes #65697
What?
This PR fixes the icon color inconsistency (chevron, sticky, lock) in the List view.
Why?
As of #65361, the list view button has been replaced with the
a
element instead of theButton
component. This means that the following styles no longer apply:gutenberg/packages/components/src/button/style.scss
Line 373 in 3155ab7
How?
Considering the possibility that new icons may be added to list view buttons in the future, I added
fill:currentColor
to all SVGs in the list view buttons. This selector should be equivalent to the previous.components-button svg
.Testing Instructions
Screenshots or screencast