fix(theme-classic): make nav dropdowns focusable (#6003)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Robin Métral 2021-12-08 18:50:39 +01:00 committed by GitHub
parent f5a404b877
commit 9433dcbe60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -86,6 +86,7 @@ function DropdownNavbarItemDesktop({
'dropdown--show': showDropdown,
})}>
<NavLink
href={props.to ? undefined : '#'}
className={clsx('navbar__link', className)}
{...props}
onClick={props.to ? undefined : (e) => e.preventDefault()}

View File

@ -53,7 +53,6 @@ export default function LocaleDropdownNavbarItem({
return (
<DropdownNavbarItem
{...props}
href="#"
mobile={mobile}
label={
<span>