Skip to content

Commit 38c2fe0

Browse files
juristrFrozenPandaz
authored andcommittedJul 30, 2024
feat(nx-dev): improve link visibility on docs pages
(cherry picked from commit 9712fb2)
1 parent 1ada8c2 commit 38c2fe0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎nx-dev/feature-doc-viewer/src/lib/related-documents-section.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function CategoryBox({ category }: { category: RelatedDocumentsCategory }) {
5353
>
5454
<Link
5555
href={d.path}
56-
className="flex flex-grow items-center justify-between no-underline hover:text-sky-600 hover:underline dark:hover:text-sky-400"
56+
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"
5757
prefetch={false}
5858
>
5959
<span>{d.name}</span>

‎nx-dev/ui-markdoc/src/lib/nodes/link.component.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from 'next/link';
2+
import { cx } from '@nx/nx-dev/ui-primitives';
23

34
export function CustomLink(props: any) {
45
const target =
@@ -11,7 +12,10 @@ export function CustomLink(props: any) {
1112
passHref
1213
target={target}
1314
rel={target === '_blank' ? 'noreferrer' : undefined}
14-
className={props.className}
15+
className={cx(
16+
props.className,
17+
'text-blue-600 transition-colors ease-out hover:text-blue-700 dark:text-sky-500 dark:hover:text-sky-400'
18+
)}
1519
>
1620
{props.children}
1721
</Link>

0 commit comments

Comments
 (0)
Please sign in to comment.