summaryrefslogtreecommitdiffstats
path: root/src/components/MainNav
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-11 17:56:27 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-11 17:56:27 +0100
commit8647197a05490e2c10106a021cf6760bdabb5b2a (patch)
tree5fb56fad1c0f585ac063a8f6390e68586e3e6084 /src/components/MainNav
parentc69c107de84aa3b2cdbf0ed087d0314f22d30b18 (diff)
chore: improve accessibility
Diffstat (limited to 'src/components/MainNav')
-rw-r--r--src/components/MainNav/MainNav.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/MainNav/MainNav.tsx b/src/components/MainNav/MainNav.tsx
index e996e89..c7789ba 100644
--- a/src/components/MainNav/MainNav.tsx
+++ b/src/components/MainNav/MainNav.tsx
@@ -151,7 +151,13 @@ const MainNav = ({
})}
</span>
</label>
- <nav className={styles.nav}>
+ <nav
+ className={styles.nav}
+ aria-label={intl.formatMessage({
+ defaultMessage: 'Primary',
+ description: 'MainNav: aria-label',
+ })}
+ >
<ul className={styles.list}>{navItems}</ul>
</nav>
</div>