Skip to content

Commit

Permalink
Fix unlabeled Remove shadow buttons. (#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 <afercia@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
  • Loading branch information
5 people committed 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.