File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ export function SideNav() {
22
22
const active = router . pathname === link . href ;
23
23
return (
24
24
< li key = { link . href } className = { active ? 'active' : '' } >
25
- < Link { ...link } >
26
- < a href = { link . href } > { link . children } </ a >
27
- </ Link >
25
+ < Link { ...link } />
28
26
</ li >
29
27
) ;
30
28
} ) }
@@ -54,11 +52,11 @@ export function SideNav() {
54
52
list-style: none;
55
53
margin: 0;
56
54
}
57
- li a {
55
+ li :global(a) {
58
56
text-decoration: none;
59
57
}
60
- li a:hover,
61
- li.active > a {
58
+ li :global( a:hover) ,
59
+ li.active :global(a) {
62
60
text-decoration: underline;
63
61
}
64
62
` }
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export function TableOfContents({toc}) {
27
27
. filter ( Boolean )
28
28
. join ( ' ' ) }
29
29
>
30
- < Link href = { href } passHref >
31
- < a > { item . title } </ a >
30
+ < Link href = { href } >
31
+ { item . title }
32
32
</ Link >
33
33
</ li >
34
34
) ;
@@ -54,11 +54,11 @@ export function TableOfContents({toc}) {
54
54
list-style-type: none;
55
55
margin: 0 0 1rem;
56
56
}
57
- li a {
57
+ li :global(a) {
58
58
text-decoration: none;
59
59
}
60
- li a:hover,
61
- li.active a {
60
+ li :global( a:hover) ,
61
+ li.active :global(a) {
62
62
text-decoration: underline;
63
63
}
64
64
li.padded {
You can’t perform that action at this time.
0 commit comments