Skip to content

Commit

Permalink
Shadow Panel: Improve a11y and fix browser console error (WordPress#6…
Browse files Browse the repository at this point in the history
…1980)

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: madhusudhand <[email protected]>
  • Loading branch information
3 people authored May 27, 2024
1 parent d6ff9bf commit 29d0876
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,7 @@ function ShadowItem( { shadow, onChange, canRemove, onRemove } ) {
'edit-site-global-styles__shadow-editor__dropdown-toggle',
{ 'is-open': isOpen }
),
ariaExpanded: isOpen,
ariaLabel: shadowObj.inset
? __( 'Inner shadow' )
: __( 'Drop shadow' ),
'aria-expanded': isOpen,
};
const removeButtonProps = {
onClick: onRemove,
Expand Down

0 comments on commit 29d0876

Please sign in to comment.