Open source video conferencing app powered by LiveKit. Built with Django and React.
♿️(frontend) enhance sidepanel accessibility
lebaudantoine3cd5c77f4242
diff --git a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsxindex 3ca50e6e..542b1e2b 100644--- a/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx+++ b/src/frontend/src/features/rooms/livekit/components/SidePanel.tsx@@ -16,6 +16,7 @@ import { Info } from './Info'type StyledSidePanelProps = {title: string+ ariaLabel: stringchildren: ReactNodeonClose: () => voidisClosed: boolean@@ -26,6 +27,7 @@ type StyledSidePanelProps = {const StyledSidePanel = ({title,+ ariaLabel,children,onClose,isClosed,@@ -33,7 +35,7 @@ const StyledSidePanel = ({isSubmenu = false,onBack,}: StyledSidePanelProps) => (- <div+ <asideclassName={css({borderWidth: '1px',borderStyle: 'solid',@@ -58,6 +60,8 @@ const StyledSidePanel = ({style={{transform: isClosed ? 'translateX(calc(360px + 1.5rem))' : 'none',}}+ aria-hidden={isClosed}+ aria-label={ariaLabel}><Headingslot="title"@@ -74,7 +78,7 @@ const StyledSidePanel = ({{isSubmenu && (<Buttonvariant="secondaryText"- size={'sm'}+ size="sm"squareclassName={css({ marginRight: '0.5rem' })}onPress={onBack}@@ -104,7 +108,7 @@ const StyledSidePanel = ({</Button></Div>{children}- </div>+ </aside>)type PanelProps = {@@ -144,6 +148,7 @@ export const SidePanel = () => {return (<StyledSidePaneltitle={t(`heading.${activeSubPanelId || activePanelId}`)}+ ariaLabel={t('ariaLabel')}onClose={() => {layoutStore.activePanelId = nulllayoutStore.activeSubPanelId = nulldiff --git a/src/frontend/src/locales/de/rooms.json b/src/frontend/src/locales/de/rooms.jsonindex 19f823e5..102d30b9 100644--- a/src/frontend/src/locales/de/rooms.json+++ b/src/frontend/src/locales/de/rooms.json@@ -270,6 +270,7 @@}},"sidePanel": {+ "ariaLabel": "Seitenleiste","heading": {"participants": "Teilnehmer","effects": "Effekte",diff --git a/src/frontend/src/locales/en/rooms.json b/src/frontend/src/locales/en/rooms.jsonindex 7f1b32d9..cda662e1 100644--- a/src/frontend/src/locales/en/rooms.json+++ b/src/frontend/src/locales/en/rooms.json@@ -270,6 +270,7 @@}},"sidePanel": {+ "ariaLabel": "Sidepanel","heading": {"participants": "Participants","effects": "Backgrounds and Effects",diff --git a/src/frontend/src/locales/fr/rooms.json b/src/frontend/src/locales/fr/rooms.jsonindex 2adcc6ba..4f102435 100644--- a/src/frontend/src/locales/fr/rooms.json+++ b/src/frontend/src/locales/fr/rooms.json@@ -270,6 +270,7 @@}},"sidePanel": {+ "ariaLabel": "Panneau latéral","heading": {"participants": "Participants","effects": "Arrière-plans et effets",diff --git a/src/frontend/src/locales/nl/rooms.json b/src/frontend/src/locales/nl/rooms.jsonindex be7c0f25..eff87701 100644--- a/src/frontend/src/locales/nl/rooms.json+++ b/src/frontend/src/locales/nl/rooms.json@@ -270,6 +270,7 @@}},"sidePanel": {+ "ariaLabel": "Zijbalk","heading": {"participants": "Deelnemers","effects": "Effecten",