fix: added missing aria-labels to toolbar buttons for accessibility

This commit is contained in:
Rajvardhan Singh Rathore
2025-11-22 11:57:24 +05:30
committed by Дамян Минков
parent c3079cc156
commit cff9b3b157

View File

@@ -291,6 +291,7 @@ export default function Toolbox({
{Boolean(overflowMenuButtons.length) && (
<OverflowMenuButton
ariaControls = 'overflow-menu'
ariaLabel = { t('toolbar.accessibilityLabel.moreActionsMenu') }
buttons = { overflowMenuButtons.reduce<Array<IToolboxButton[]>>((acc, val) => {
if (val.key === 'reactions' && showReactionsInOverflowMenu) {
return acc;
@@ -327,6 +328,7 @@ export default function Toolbox({
endConferenceSupported
? <HangupMenuButton
ariaControls = 'hangup-menu'
ariaLabel = { t('toolbar.accessibilityLabel.hangup') }
isOpen = { hangupMenuVisible }
key = 'hangup-menu'
notifyMode = { buttonsWithNotifyClick?.get('hangup-menu') }