-
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
Fix : Secondary Button Transition #66045
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!
$black
looks a bit unnatural to me. Below I temporarily changed the transition-delay from 0.1s to 1s to better demonstrate the focus outline transition:
bb9e5e8df17b2391d04079c2665a1fb1.mp4
currentColor
feels smoother to me:
ed2a180abd2433547a2d272cefab3767.mp4
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.
Secondary button transition looks good, thanks for fixing it @Vrishabhsk! 🙌
Before we ship it, could you please add a CHANGELOG entry?
That would be great, thank you! Ideally, that button should just inherit the styles and transitions from the default secondary button. That might mean some style overrides could be cleaned up. Feel free to address it in another PR, of course. |
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 👍 ✅
Thanks for the fix @Vrishabhsk 🚀
* Modify box-shadow to allow transition delay * Replace hex with * Replace $black with currentColor * Update changelog --------- Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Co-authored-by: Vrishabhsk <vrishabhsk@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
* Modify box-shadow to allow transition delay * Replace hex with * Replace $black with currentColor * Update changelog --------- Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Co-authored-by: Vrishabhsk <vrishabhsk@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
What? + How?
box-shadow
style forcomponents-button.is-secondary
to allowtransition delay
to be appliedRef-1
&Ref-2
Why?
insets
andoutsets
Screenshots or screencast
Original
Screen.Recording.2024-10-11.at.12.40.23.PM.mov
Fixed
Screen.Recording.2024-10-11.at.12.40.42.PM.mov