mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-10 03:37:52 +02:00
♿️(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:
@@ -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
|
||||
|
||||
|
||||
+5
-3
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user