-
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
Shadows: Always show reset button if hover is not supported #68122
Conversation
&.edit-site-global-styles__shadow-editor__remove-button { | ||
border: none; | ||
} |
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.
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: +6 B (0%) Total Size: 1.84 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.
Thanks Aki. This is testing great on my end.
Screen.Recording.2024-12-19.at.10.21.45.mov
I'm wondering if we should do the same for the other resets we've implemented, for consistency. Although there's more than one "reset" options on those cases.
Thanks for the review!
Yes, I think we need to. For example, the reset button added by #67116 is not touchable on devices that don't support hover. The "Clear" button is available in the dropdown, but it may be better to always show the reset button, as in this PR. |
Flaky tests detected in b41852a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12408743322
|
Thanks for the work on this 👍 LGTM! |
That was my thought. I'll adapt the other reset to get this fixed. Thank you 🙏 |
Follow-up #67705
What? Why? How?
#67705 made the reset button in the shadow panel visible only on hover. However, I found that it was not possible to remove the shadow on devices that don't support hover. Therefore, I made the reset button visible on all devices that don't support hover.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast