Skip to content

Commit

Permalink
Keep Docusaurus sidebar link color
Browse files Browse the repository at this point in the history
  • Loading branch information
sushitommy committed Dec 16, 2024
1 parent 09c1b90 commit 767b12f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus/src/theme/DocSidebarItem/Link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import { Link } from '@nl-rvo/components';
import type { Props } from '@theme/DocSidebarItem/Link';
import clsx from 'clsx';
import styles from './styles.module.css';

export default function DocSidebarItemLink({ item, onItemClick, activePath, level, ...props }: Props): JSX.Element {
const { href, label, className } = item;
Expand Down Expand Up @@ -32,6 +33,7 @@ export default function DocSidebarItemLink({ item, onItemClick, activePath, leve
{...props}
showIcon={!isInternalLink ? 'after' : 'no'}
icon={!isInternalLink ? 'externe-link' : undefined}
className={styles['sidebar-link']}
>
{label}
</Link>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.sidebar-link:hover,
.sidebar-link:focus {
color: var(--rvo-color-grijs-700) !important;
}

0 comments on commit 767b12f

Please sign in to comment.