Skip to content
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

Disable Clear button if there's no shadow. #69092

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

shimotmk
Copy link
Contributor

@shimotmk shimotmk commented Feb 7, 2025

What?

Disable Clear button if there's no shadow.

Related #67108

Why?

The “Clear” button in the Shadow is currently active even when no shadow value is set. This can be confusing for users, as clicking the button doesn’t do anything in this case.
Disabled when no value is given for consistency.

How?

Testing Instructions

  1. Open a post or page. -->
  2. Insert a Cover block. -->
  3. The clear button is inactive when there is no shadow in the shadow control.

Testing Instructions for Keyboard

Screenshots or screencast

Before

before.mov

After

after.mov

@shimotmk shimotmk requested a review from ellatrix as a code owner February 7, 2025 09:50
Copy link

github-actions bot commented Feb 7, 2025

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: shimotmk <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Feb 7, 2025
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thank you, @shimotmk!

@Mamaduka Mamaduka added the props-bot Adding this label triggers the Props Bot workflow for a PR. label Feb 7, 2025
@github-actions github-actions bot removed the props-bot Adding this label triggers the Props Bot workflow for a PR. label Feb 7, 2025
@Mamaduka Mamaduka merged commit d7e8549 into WordPress:trunk Feb 7, 2025
72 of 73 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.3 milestone Feb 7, 2025
@shimotmk
Copy link
Contributor Author

shimotmk commented Feb 7, 2025

Thank you @Mamaduka 😌

@shimotmk shimotmk deleted the fix/shadow-clear-button branch February 7, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants