File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' nextra-theme-docs ' : patch
3
+ ---
4
+
5
+ Fix nav-links not highlighting on hover in dark mode
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ interface NavLinkProps {
14
14
15
15
const classes = {
16
16
link : cn (
17
- '_flex _max-w-[50%] _items-center _gap-1 _py-4 _text-base _font-medium _text-gray-600 _transition-colors [word-break:break-word] hover:_text-primary-600 dark:_text-gray-300 md:_text-lg'
17
+ '_text-gray-600 dark:_text-gray-400' ,
18
+ 'hover:_text-gray-800 dark:hover:_text-gray-200' ,
19
+ 'contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100' ,
20
+ '_flex _max-w-[50%] _items-center _gap-1 _py-4 _text-base _font-medium _transition-colors [word-break:break-word] md:_text-lg'
18
21
) ,
19
22
icon : cn ( '_inline _h-5 _shrink-0' )
20
23
}
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ export type TOCProps = {
15
15
}
16
16
17
17
const linkClassName = cn (
18
- '_text-xs _font-medium _text-gray-500 hover:_text-gray-900 dark:_text-gray-400 dark:hover:_text-gray-100' ,
19
- 'contrast-more:_text-gray-800 contrast-more:dark:_text-gray-50'
18
+ '_text-xs _font-medium' ,
19
+ '_text-gray-600 dark:_text-gray-400' ,
20
+ 'hover:_text-gray-800 dark:hover:_text-gray-200' ,
21
+ 'contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100'
20
22
)
21
23
22
24
export function TOC ( { toc, filePath } : TOCProps ) : ReactElement {
You can’t perform that action at this time.
0 commit comments