-
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
Shadow Panel: Add reset button #68981
base: trunk
Are you sure you want to change the base?
Shadow Panel: Add reset button #68981
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. |
> .components-button.has-icon.has-text:first-child { | ||
gap: $grid-unit-10; | ||
} |
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.
CSS selectors with the .components-
prefix should be avoided as much as possible. Can we use the HStack
component inside the Button component as in the previous implementation?
transition: opacity 0.1s ease-in-out; | ||
@include reduce-motion("transition"); |
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.
transition: opacity 0.1s ease-in-out; | |
@include reduce-motion("transition"); | |
@media not ( prefers-reduced-motion ) { | |
transition: opacity 0.1s ease-in-out; | |
} | |
See #68282
'block-editor-global-styles__shadow-editor__remove-button', | ||
{ 'is-open': isOpen } | ||
), | ||
label: __( 'Remove shadow' ), |
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.
label: __( 'Remove shadow' ), | |
label: __( 'Reset' ), |
Keep wording consistent with other similar UI.
What, Why and How?
Closes #68973
This PR adds a reset button to the
Shadow Panel
, which becomes visible on hover or focus.Testing Instructions
post edit
page.Group block
and try changing the defaultshadow
.reset
button, which appears on hover.reset
button and confirm the shadow gets reset.Screencast
shadow-demo.mov