@@ -35,12 +35,9 @@ function ItemLink({
35
35
onClick = { item . href ? onLinkClick : undefined }
36
36
className = { clsx ( styles . item , className , isSelected && styles . selected ) }
37
37
>
38
- < NavIcon
39
- icon = { item . icon }
40
- aria-hidden = "true"
41
- className = "ml-1 fill-inherit stroke-inherit text-inherit"
42
- />
43
- { item . title }
38
+ < span className = "ml-6" >
39
+ { item . title }
40
+ </ span >
44
41
</ Link >
45
42
)
46
43
}
@@ -59,12 +56,17 @@ export function Navigation({
59
56
< Link
60
57
href = "/quickstart"
61
58
className = { clsx (
62
- 'flex w-full items-center justify-between rounded-md pb-1 text-left leading-6' ,
59
+ 'flex w-full items-center rounded-md pb-1 text-left leading-6' ,
63
60
pathname . includes ( '/quickstart' )
64
61
? 'text-sky-500'
65
62
: 'hover:text-gray-900 dark:hover:text-gray-300' ,
66
63
) }
67
64
>
65
+ < NavIcon
66
+ icon = { "home" }
67
+ aria-hidden = "true"
68
+ className = "ml-1 fill-inherit stroke-inherit text-inherit"
69
+ />
68
70
Quickstart Guide
69
71
</ Link >
70
72
{ navigation . map ( ( section ) => {
@@ -84,14 +86,19 @@ export function Navigation({
84
86
section . href !== '' && pathname . includes ( section . href ) ,
85
87
) }
86
88
>
89
+ < NavIcon
90
+ icon = { section . icon }
91
+ aria-hidden = "true"
92
+ className = "ml-1 fill-inherit stroke-inherit text-inherit"
93
+ />
87
94
{ section . title }
88
95
< Icon
89
96
icon = "chevron"
90
97
className = { clsx (
91
98
open
92
99
? 'rotate-90 '
93
100
: 'text-gray-600 dark:text-gray-400' ,
94
- 'w-5 shrink-0' ,
101
+ 'ml-auto w-5 shrink-0' ,
95
102
pathname . includes ( section . href ) &&
96
103
'text-gray-900 dark:text-gray-200' ,
97
104
) }
0 commit comments