Skip to content

Commit

Permalink
feat(nx-dev): improve link visibility on docs pages
Browse files Browse the repository at this point in the history
(cherry picked from commit 9712fb2)
  • Loading branch information
juristr authored and FrozenPandaz committed Jul 30, 2024
1 parent 1ada8c2 commit 38c2fe0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function CategoryBox({ category }: { category: RelatedDocumentsCategory }) {
>
<Link
href={d.path}
className="flex flex-grow items-center justify-between no-underline hover:text-sky-600 hover:underline dark:hover:text-sky-400"
className="flex flex-grow items-center justify-between no-underline transition-colors ease-out hover:text-blue-700 hover:underline dark:text-sky-500 dark:hover:text-sky-400"
prefetch={false}
>
<span>{d.name}</span>
Expand Down
6 changes: 5 additions & 1 deletion nx-dev/ui-markdoc/src/lib/nodes/link.component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import { cx } from '@nx/nx-dev/ui-primitives';

export function CustomLink(props: any) {
const target =
Expand All @@ -11,7 +12,10 @@ export function CustomLink(props: any) {
passHref
target={target}
rel={target === '_blank' ? 'noreferrer' : undefined}
className={props.className}
className={cx(
props.className,
'text-blue-600 transition-colors ease-out hover:text-blue-700 dark:text-sky-500 dark:hover:text-sky-400'
)}
>
{props.children}
</Link>
Expand Down

0 comments on commit 38c2fe0

Please sign in to comment.