️(frontend) align mobile header menu aria-label i18n pattern

Use t() on each aria-label branch to match impress i18n convention.
This commit is contained in:
Cyril
2026-06-03 09:15:29 +02:00
parent dc692a1594
commit a78269a69f
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -25,6 +25,7 @@ and this project adheres to
- ♻️(frontend) move doc action buttons to fix toolbar #2360
- ♿️(frontend) add aria-hidden to decorative avatar SVGs in share modal #2324
- 🏗️(frontend) move comments to its own folder feature #2374
- ♿️(frontend) align mobile header menu aria-label i18n pattern #2377
### Fixed
@@ -12,9 +12,11 @@ export const LeftPanelToggleMobile = () => {
<Button
size="medium"
onClick={() => togglePanel({ type: 'mobile' })}
aria-label={t(
isPanelOpenMobile ? 'Close the header menu' : 'Open the header menu',
)}
aria-label={
isPanelOpenMobile
? t('Close the header menu')
: t('Open the header menu')
}
aria-expanded={isPanelOpenMobile}
variant="tertiary"
icon={