File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ const MenuColorPicker = ({ setColorKey }: MenuColorPickerProps) => {
28
28
} ;
29
29
30
30
return (
31
- < Dropdown offsetY = { 5 } label = { < ColorPickerIcon /> } >
31
+ < Dropdown
32
+ aria-label = "Color Picker Dropdown"
33
+ offsetY = { 5 }
34
+ label = { < ColorPickerIcon /> }
35
+ >
32
36
< S . Container >
33
37
{ COLOR_KEYS . map ( ( key ) => (
34
38
< S . ColorCircle
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const Dropdown: React.FC<DropdownProps> = ({
15
15
disabled,
16
16
children,
17
17
offsetY,
18
+ ...props
18
19
} ) => {
19
20
const ref = useRef ( null ) ;
20
21
const { value : isOpen , setFalse, setTrue } = useBoolean ( false ) ;
@@ -30,7 +31,7 @@ const Dropdown: React.FC<DropdownProps> = ({
30
31
< S . DropdownButton
31
32
onClick = { handleClick }
32
33
ref = { ref }
33
- aria-label = " Dropdown Toggle"
34
+ aria-label = { props [ 'aria-label' ] || ' Dropdown Toggle' }
34
35
disabled = { disabled }
35
36
>
36
37
{ label || < VerticalElipsisIcon /> }
You can’t perform that action at this time.
0 commit comments