diff --git a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts index 0c34618bdc32..a0549256e98f 100644 --- a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts +++ b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts @@ -214,13 +214,6 @@ export default function getSwizzleConfig(): SwizzleConfig { description: 'The Navbar item components mapping. Can be ejected to add custom navbar item types. See https://github.com/facebook/docusaurus/issues/7227.', }, - // TODO should probably not even appear here - 'NavbarItem/utils': { - actions: { - eject: 'forbidden', - wrap: 'forbidden', - }, - }, NotFound: { actions: { eject: 'safe', diff --git a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DefaultNavbarItem.tsx b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DefaultNavbarItem.tsx index 21d22bb012ee..948d6507d7bc 100644 --- a/packages/docusaurus-theme-classic/src/theme/NavbarItem/DefaultNavbarItem.tsx +++ b/packages/docusaurus-theme-classic/src/theme/NavbarItem/DefaultNavbarItem.tsx @@ -13,16 +13,6 @@ import type { Props, } from '@theme/NavbarItem/DefaultNavbarItem'; -/** - * On desktop and mobile, we would apply different class names for dropdown - * items. - * @see https://github.com/facebook/docusaurus/pull/5431 - */ -const getInfimaActiveClassName = ( - mobile?: boolean, -): `${'menu' | 'navbar'}__link--active` => - mobile ? 'menu__link--active' : 'navbar__link--active'; - function DefaultNavbarItemDesktop({ className, isDropdownItem = false, @@ -68,7 +58,8 @@ export default function DefaultNavbarItem({ );