diff --git a/CHANGELOG.md b/CHANGELOG.md index 57f6cd6a..0dfc5cda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to - ♿ add pdf outline property to enable bookmarks display #1368 - ♿ hide decorative icons from assistive tech with aria-hidden #1404 - ♿ remove redundant aria-label to avoid over-accessibility #1420 + - ♿ improve semantic structure and aria roles of leftpanel #1431 - ♿ add default background to left panel for better accessibility #1423 ### Fixed diff --git a/src/frontend/apps/impress/src/features/left-panel/components/LefPanelTargetFilters.tsx b/src/frontend/apps/impress/src/features/left-panel/components/LefPanelTargetFilters.tsx index e55de21a..60377a38 100644 --- a/src/frontend/apps/impress/src/features/left-panel/components/LefPanelTargetFilters.tsx +++ b/src/frontend/apps/impress/src/features/left-panel/components/LefPanelTargetFilters.tsx @@ -49,8 +49,6 @@ export const LeftPanelTargetFilters = () => { return ( { const { isDesktop } = useResponsiveStore(); + const { t } = useTranslation(); const { colorsTokens, spacingsTokens } = useCunninghamTheme(); const { togglePanel, isPanelOpen } = useLeftPanelStore(); @@ -46,6 +48,8 @@ export const LeftPanel = () => { background-color: ${colorsTokens['greyscale-000']}; `} className="--docs--left-panel-desktop" + as="nav" + aria-label={t('Document sections')} > { > { return ( @@ -41,6 +41,7 @@ export const LeftPanelFavorites = () => { $variation="700" $padding={{ horizontal: '3xs' }} $weight="700" + id="pinned-docs-title" > {t('Pinned documents')}