Skip to content

Commit

Permalink
Fix unlabeled Remove shadow buttons. (WordPress#63197)
Browse files Browse the repository at this point in the history
Replace tooltip and ariaLabel with label to ensure that the "Remove shadow" button is labeled.

Co-authored-by: afercia <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: mirka <[email protected]>
  • Loading branch information
5 people authored Jul 8, 2024
1 parent 966063e commit 6d3282e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ function ShadowItem( { shadow, onChange, canRemove, onRemove } ) {
'edit-site-global-styles__shadow-editor__remove-button',
{ 'is-open': isOpen }
),
ariaLabel: __( 'Remove shadow' ),
tooltip: __( 'Remove shadow' ),
label: __( 'Remove shadow' ),
};

return (
Expand Down

0 comments on commit 6d3282e

Please sign in to comment.