️(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:
lebaudantoine
2026-03-19 11:20:44 +01:00
parent ee8d96bee7
commit b419a2bfd2
6 changed files with 11 additions and 6 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",