Skip to content

Commit

Permalink
ColorPicker: Add accessible label for copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Nov 18, 2024
1 parent 89cba32 commit 97a20db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/color-picker/color-copy-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export const ColorCopyButton = ( props: ColorCopyButtonProps ) => {
>
<CopyButton
size="small"
aria-label={
copiedColor === color.toHex()
? __( 'Copied!' )
: __( 'Copy' )
}
ref={ copyRef }
icon={ copy }
showTooltip={ false }
Expand Down

0 comments on commit 97a20db

Please sign in to comment.