-
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
Fix : "Set featured image" button border flashes on focus #66092
Fix : "Set featured image" button border flashes on focus #66092
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. |
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 for the PR!
I noticed that the moment the button was focused, the border changed to black.
See the slow motion video below:
8ad8e1d05bf8758e58904ad525842158.mp4
I looked for the cause and found that these three styles were affecting it. Since appropriate styles were already provided, it seemed safe to remove them.
Below is the slow motion video after removing these three styles:
f9c6dc6aef898cd64fc5ba858355caa0.mp4
Transition is removed to prevent a black border in between transitioning
Thanks @t-hamano for the catch.
Screen.Recording.2024-10-15.at.11.16.59.AM.movLet me know your thoughts on this. Thanks |
Thanks for the update!
Does this have to do with this box-shadow? This style is always supposed to be overridden here, so I'm wondering why it's affecting the transition 🤔 |
Hi @t-hamano,
|
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!
One last thing: what do you think about removing this mixin? Since this mixin exists in the Button component itself, it seems safe to remove it.
Hi @t-hamano 👋, I have removed the redundant mixin. Thanks for pointing that out. |
…66092) * Enable smooth transition of box-shadow for feat. img. * Remove fallback style and remove transition Transition is removed to prevent a black border in between transitioning * Update changelog * Remove redundant style Co-authored-by: Vrishabhsk <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: mirka <[email protected]> Co-authored-by: tyxla <[email protected]>
What?
box-shadow
style for:focus:not(:disabled)
state of "Set featured image" button.Why?
Fixes #65299
How?
box-shadow
inset
property isn't affected by thetransition delay
#66007
Screenshots or screencast
Original
Screen.Recording.2024-10-14.at.4.14.16.PM.mov
Improved
Screen.Recording.2024-10-14.at.4.16.01.PM.mov