Make (most) UI elements reachable via keyboard (#12657)

feat(a11y): make (most) UI elements reachable via keyboard
This commit is contained in:
Emmanuel Pelletier
2023-02-28 11:21:15 +01:00
committed by GitHub
parent 778bca3031
commit c81777a475
24 changed files with 247 additions and 32 deletions

View File

@@ -172,7 +172,8 @@ const ContextMenuItem = ({
onClick = { disabled ? undefined : onClick }
onKeyDown = { disabled ? undefined : onKeyDown }
onKeyPress = { disabled ? undefined : onKeyPress }
role = 'menuitem'>
role = 'button'
tabIndex = { disabled ? undefined : 0 }>
{customIcon ? customIcon
: icon && <Icon
className = { styles.contextMenuItemIcon }