chore(wcag) Create valid structure for audio menu (#16007)

This commit is contained in:
raduanastase8x8
2025-07-24 19:40:50 +03:00
committed by GitHub
parent b050e5f5e8
commit 52fa36f930
4 changed files with 37 additions and 38 deletions

View File

@@ -14,7 +14,7 @@ export interface IProps {
/**
* Label used for accessibility.
*/
accessibilityLabel: string;
accessibilityLabel?: string;
/**
* The context menu item background color.
@@ -232,7 +232,7 @@ const ContextMenuItem = ({
<div
aria-controls = { controls }
aria-disabled = { disabled }
aria-label = { accessibilityLabel }
aria-label = { accessibilityLabel || undefined }
aria-selected = { role === 'tab' ? selected : undefined }
className = { cx(styles.contextMenuItem,
_overflowDrawer && styles.contextMenuItemDrawer,