Add aria-label to icon variant of IAISimpleMenu

Uses whatever the iconTooltip copy is
This commit is contained in:
ElrikUnderlake
2023-03-06 22:43:41 -06:00
parent fdb146a43a
commit b0b8846430

View File

@ -68,6 +68,7 @@ export default function IAISimpleMenu(props: IAIMenuProps) {
<MenuButton <MenuButton
as={menuType === 'icon' ? IconButton : Button} as={menuType === 'icon' ? IconButton : Button}
tooltip={iconTooltip} tooltip={iconTooltip}
aria-label={iconTooltip}
icon={isOpen ? <MdArrowDropUp /> : <MdArrowDropDown />} icon={isOpen ? <MdArrowDropUp /> : <MdArrowDropDown />}
paddingX={0} paddingX={0}
paddingY={menuType === 'regular' ? 2 : 0} paddingY={menuType === 'regular' ? 2 : 0}