From 14f8b22e43ac3f7fc7adf4af4f80fe7f69085be5 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Sat, 21 May 2022 00:03:20 +0530 Subject: [PATCH] fix(side-navbar): keyboard a11y replace div with button to allow activation using space and enter --- src/components/nav-bar/nav-bar.scss | 4 ++++ src/components/nav-bar/nav-bar.tsx | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/nav-bar/nav-bar.scss b/src/components/nav-bar/nav-bar.scss index afc295fcf..4963c58aa 100644 --- a/src/components/nav-bar/nav-bar.scss +++ b/src/components/nav-bar/nav-bar.scss @@ -105,5 +105,9 @@ $nav-break-height-sm: 746px; .nav-bar__item { margin: 10px 0; font-size: 25px; + font-family: inherit; + line-height: 1.5; + display: block; + width: 100%; } } diff --git a/src/components/nav-bar/nav-bar.tsx b/src/components/nav-bar/nav-bar.tsx index a3e32d45f..47e9ec313 100644 --- a/src/components/nav-bar/nav-bar.tsx +++ b/src/components/nav-bar/nav-bar.tsx @@ -35,10 +35,10 @@ export const NavBar: React.FunctionComponent = (props: NavBarProps,
{props.version && props.version()}
{(props.items || []).map((item) => ( -
context.router.history.push(item.path)}> -
+
))}