chore(wcag) Make the video menu HTML valid for accessibility

This commit is contained in:
raduanastase8x8
2025-05-08 13:02:55 +03:00
committed by GitHub
parent 33a771fe8c
commit 88b45c9182
5 changed files with 35 additions and 17 deletions

View File

@@ -224,7 +224,7 @@ const ContextMenuItem = ({
tabIndex = selected ? 0 : -1;
}
if (role === 'button' && !disabled) {
if ((role === 'button' || role === 'menuitem') && !disabled) {
tabIndex = 0;
}