mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
fix(theme-classic): fixed wrong cursor on dropdown menu in navbar, when window is small (#9398)
This commit is contained in:
parent
cf08ec9790
commit
6f70b27694
2 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,7 @@ import type {
|
||||||
DesktopOrMobileNavBarItemProps,
|
DesktopOrMobileNavBarItemProps,
|
||||||
Props,
|
Props,
|
||||||
} from '@theme/NavbarItem/DropdownNavbarItem';
|
} from '@theme/NavbarItem/DropdownNavbarItem';
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
|
||||||
function isItemActive(
|
function isItemActive(
|
||||||
item: LinkLikeNavbarItemProps,
|
item: LinkLikeNavbarItemProps,
|
||||||
|
@ -143,6 +144,7 @@ function DropdownNavbarItemMobile({
|
||||||
<NavbarNavLink
|
<NavbarNavLink
|
||||||
role="button"
|
role="button"
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
styles.dropdownNavbarItemMobile,
|
||||||
'menu__link menu__link--sublist menu__link--sublist-caret',
|
'menu__link menu__link--sublist menu__link--sublist-caret',
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
|
@ -0,0 +1,10 @@
|
||||||
|
/**
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.dropdownNavbarItemMobile {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue