-
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
Add reset button to color control #67116
base: trunk
Are you sure you want to change the base?
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: +184 B (+0.01%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
What?
Add an inline reset button to the color control, shown on hover/focus, if there's a value. Picked changes from this PR with a few tweaks. The original PR was closed as stale, but I believe this is a nice improvement that will improve the overall experience for creators.
Props @kevin940726
Why?
To make it easier to reset a color selection, reduce the number of clicks as it doesn't require opening the color options panel.
Fixes #41866
How?
Adding a button if there's a color value, and adjusting the CSS so that it looks like the proposed designs.
Testing Instructions
Screenshots or screencast
Screen.Recording.2024-11-19.at.15.16.09.mov