-
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
Updated unstyledButton hover selector to change fill of svg and path element #50819
Updated unstyledButton hover selector to change fill of svg and path element #50819
Conversation
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.
This is working well for me ✨ I've made one suggestion, let me know what you think!
…-svg-on-hover-fill
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.
It looks like you may need to run |
@mikachan Updated snapshot. Let's see what happens |
Looks like that fixed the failing test! I've just pushed an update to the changelog too, but I'm not sure it's entirely necessary for this change. I think this is ready to bring in 👍 |
…element (WordPress#50819) * Updated unstyledButton hover selector to change fill of svg and path elements * Changed placement svg selector and used css constant currentColor * Deleted :focus selector since it overrides browser default :focus-visible * Updated test snapshots * Update changelog * Fix PR URL in changelog * Fix indentation in CHANGELOG.md --------- Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
What?
In the sidebar we have list of links to patterns and media files. Inside the button there is text (name of the pattern/name of the file) and svg icon (chevron pointing to right). When hovering over the button fill of svg does not change.
Changed how
:focus
state is handled to be more consistent with another view.Why?
Issue(s) were originally mentioned #50758 and in #50757
The goal is to make UX more consistent
How?
Extended button
:hover
to change fill ofsvg
elements inside the buttonTesting Instructions for #50758
Testing Instructions for #50757
Testing Instructions for Keyboard
Screenshots or screencast