Skip to content

Commit d23f544

Browse files
committed
⚡️(frontend) make LeftPanelTargetFilter accessible and use Box as nav
adds aria-label and focus-visible to improve accessibility Signed-off-by: Cyril <c.gromoff@gmail.com>
1 parent ec84f31 commit d23f544

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/frontend/apps/impress/src/features/left-panel/components/LefPanelTargetFilters.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export const LeftPanelTargetFilters = () => {
4848

4949
return (
5050
<Box
51+
as="nav"
52+
aria-label={t('Document sections')}
5153
$justify="center"
5254
$padding={{ horizontal: 'sm' }}
5355
$gap={spacingsTokens['2xs']}
@@ -77,6 +79,11 @@ export const LeftPanelTargetFilters = () => {
7779
&:hover {
7880
background-color: ${colorsTokens['greyscale-100']};
7981
}
82+
&:focus-visible {
83+
outline: 2px solid ${colorsTokens['primary-500']};
84+
outline-offset: 2px;
85+
border-radius: ${spacingsTokens['3xs']};
86+
}
8087
`}
8188
>
8289
<Icon

src/frontend/apps/impress/src/i18n/translations.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"Document accessible to any connected person": "Restr a c'hall bezañ tizhet gant ne vern piv a vefe kevreet",
4444
"Document duplicated successfully!": "Restr eilet gant berzh!",
4545
"Document owner": "Perc'henn ar restr",
46+
"Document sections": "Rannoù an teul",
4647
"Docx": "Docx",
4748
"Download": "Pellgargañ",
4849
"Download anyway": "Pellgargañ memestra",
@@ -215,6 +216,7 @@
215216
"Document accessible to any connected person": "Dokument für jeden angemeldeten Benutzer zugänglich",
216217
"Document duplicated successfully!": "Dokument erfolgreich dupliziert!",
217218
"Document owner": "Besitzer des Dokuments",
219+
"Document sections": "Dokumentabschnitte",
218220
"Docx": "Docx",
219221
"Download": "Herunterladen",
220222
"Download anyway": "Trotzdem herunterladen",
@@ -425,6 +427,7 @@
425427
"Docs: Your new companion to collaborate on documents efficiently, intuitively, and securely.": "Docs: su nuevo compañero para colaborar en documentos de forma eficiente, intuitiva y segura.",
426428
"Document accessible to any connected person": "Documento accesible a cualquier persona conectada",
427429
"Document owner": "Propietario del documento",
430+
"Document sections": "Secciones del documento",
428431
"Docx": "Docx",
429432
"Download": "Descargar",
430433
"Download anyway": "Descargar de todos modos",
@@ -616,6 +619,7 @@
616619
"Document accessible to any connected person": "Document accessible à toute personne connectée",
617620
"Document duplicated successfully!": "Document dupliqué avec succès !",
618621
"Document owner": "Propriétaire du document",
622+
"Document sections": "Sections des documents",
619623
"Docx": "Docx",
620624
"Download": "Télécharger",
621625
"Download anyway": "Télécharger malgré tout",
@@ -981,6 +985,7 @@
981985
"Docs: Your new companion to collaborate on documents efficiently, intuitively, and securely.": "Docs: Je nieuwe metgezel om efficiënt, intuïtief en veilig samen te werken aan documenten.",
982986
"Document accessible to any connected person": "Document is toegankelijk voor ieder verbonden persoon",
983987
"Document owner": "Document eigenaar",
988+
"Document sections": "Document secties",
984989
"Docx": "Docx",
985990
"Download": "Download",
986991
"Download anyway": "Download alsnog",

0 commit comments

Comments
 (0)