diff --git a/src/components/DocsCategoryDropdown/index.jsx b/src/components/DocsCategoryDropdown/index.jsx index 2652a562af5..c1bcd1696e0 100644 --- a/src/components/DocsCategoryDropdown/index.jsx +++ b/src/components/DocsCategoryDropdown/index.jsx @@ -1,5 +1,6 @@ import React, { useState, useRef, useEffect } from 'react'; import { useHistory } from 'react-router-dom'; +import Link from '@docusaurus/Link' import styles from './styles.module.css'; function DocsCategoryDropdown({ dropdownCategory }) { @@ -69,6 +70,14 @@ function DocsCategoryDropdown({ dropdownCategory }) { ); } +export const DocsCategoryDropdownLinkOnly = ({ title, link }) => { + return ( +
+ {title} +
+ ); +} + const DropdownContent = ({ dropdownCategory, handleMouseLeave, dropdownStyles, dropdownMenuRef }) => { const [hovered, setHovered] = useState(null); const history = useHistory(); diff --git a/src/components/DocsCategoryDropdown/styles.module.css b/src/components/DocsCategoryDropdown/styles.module.css index 3084e9a98ed..ac5d9ae3070 100644 --- a/src/components/DocsCategoryDropdown/styles.module.css +++ b/src/components/DocsCategoryDropdown/styles.module.css @@ -12,6 +12,10 @@ margin-right: 30px; } +.docsNavDropdownToolbarLink:hover { + text-decoration: none; +} + .docsNavDropdownToolbarLink:hover { color: black; } diff --git a/src/theme/Navbar/Content/index.js b/src/theme/Navbar/Content/index.js index 7e2201d89f9..bba243227f5 100644 --- a/src/theme/Navbar/Content/index.js +++ b/src/theme/Navbar/Content/index.js @@ -14,7 +14,7 @@ import ScrollableElement from "../../ScrollableElement"; import ColorModeToggle from "../../../components/ColorModeToggler"; import { usePluginData } from "@docusaurus/useGlobalData"; import GlobalMenu from "./GlobalMenu"; -import DocsCategoryDropdown from "../../../components/DocsCategoryDropdown"; +import DocsCategoryDropdown, { DocsCategoryDropdownLinkOnly } from "../../../components/DocsCategoryDropdown"; import Navigation from "../../../components/Navigation"; function useNavbarItems() { // TODO temporary casting until ThemeConfig type is improved @@ -342,6 +342,7 @@ export default function NavbarContent() { {dropdownCategories.map((dropdownCategory, index) => { return })} +