Skip to content

Commit

Permalink
Disable Clear button if there's no shadow. (#69092)
Browse files Browse the repository at this point in the history
Co-authored-by: shimotmk <shimotomoki@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people authored Feb 7, 2025
1 parent 194462f commit d7e8549
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export function ShadowPopoverContainer( { shadow, onShadowChange, settings } ) {
__next40pxDefaultSize
variant="tertiary"
onClick={ () => onShadowChange( undefined ) }
disabled={ ! shadow }
accessibleWhenDisabled
>
{ __( 'Clear' ) }
</Button>
Expand Down

0 comments on commit d7e8549

Please sign in to comment.