mirror of
https://github.com/suitenumerique/meet.git
synced 2026-09-01 13:17:59 +00:00
♿️(frontend) fix sidepanel accessibility aria-label
The aria-label only announced the presence of a sidepanel without including its title. Append the sidepanel title to improve accessibility and context for screen readers. Closes #1176.
This commit is contained in:
@@ -8,6 +8,10 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- ♿️(frontend) fix sidepanel accessibility aria-label #1182
|
||||||
|
|
||||||
## [1.11.0] - 2026-03-19
|
## [1.11.0] - 2026-03-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -149,11 +149,12 @@ export const SidePanel = () => {
|
|||||||
activeSubPanelId,
|
activeSubPanelId,
|
||||||
} = useSidePanel()
|
} = useSidePanel()
|
||||||
const { t } = useTranslation('rooms', { keyPrefix: 'sidePanel' })
|
const { t } = useTranslation('rooms', { keyPrefix: 'sidePanel' })
|
||||||
|
const title = t(`heading.${activeSubPanelId || activePanelId}`)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledSidePanel
|
<StyledSidePanel
|
||||||
title={t(`heading.${activeSubPanelId || activePanelId}`)}
|
title={title}
|
||||||
ariaLabel={t('ariaLabel')}
|
ariaLabel={t('ariaLabel', { title })}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
layoutStore.activePanelId = null
|
layoutStore.activePanelId = null
|
||||||
layoutStore.activeSubPanelId = null
|
layoutStore.activeSubPanelId = null
|
||||||
|
|||||||
@@ -319,7 +319,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sidePanel": {
|
"sidePanel": {
|
||||||
"ariaLabel": "Seitenleiste",
|
"ariaLabel": "Seitenleiste - {{title}}",
|
||||||
"backToTools": "Zurück zu den Meeting-Tools",
|
"backToTools": "Zurück zu den Meeting-Tools",
|
||||||
"heading": {
|
"heading": {
|
||||||
"participants": "Teilnehmende",
|
"participants": "Teilnehmende",
|
||||||
|
|||||||
@@ -318,7 +318,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sidePanel": {
|
"sidePanel": {
|
||||||
"ariaLabel": "Sidepanel",
|
"ariaLabel": "Sidepanel - {{title}}",
|
||||||
"backToTools": "Back to meeting tools",
|
"backToTools": "Back to meeting tools",
|
||||||
"heading": {
|
"heading": {
|
||||||
"participants": "Participants",
|
"participants": "Participants",
|
||||||
|
|||||||
@@ -318,7 +318,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sidePanel": {
|
"sidePanel": {
|
||||||
"ariaLabel": "Panneau latéral",
|
"ariaLabel": "Panneau latéral - {{title}}",
|
||||||
"backToTools": "Retour aux outils de réunion",
|
"backToTools": "Retour aux outils de réunion",
|
||||||
"heading": {
|
"heading": {
|
||||||
"participants": "Participants",
|
"participants": "Participants",
|
||||||
|
|||||||
@@ -318,7 +318,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sidePanel": {
|
"sidePanel": {
|
||||||
"ariaLabel": "Zijbalk",
|
"ariaLabel": "Zijbalk - {{title}}",
|
||||||
"backToTools": "Terug naar vergadertools",
|
"backToTools": "Terug naar vergadertools",
|
||||||
"heading": {
|
"heading": {
|
||||||
"participants": "Deelnemers",
|
"participants": "Deelnemers",
|
||||||
|
|||||||
Reference in New Issue
Block a user