File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
apps/website/src/components Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,15 @@ export default component$(({ showVersion = false }: HeaderProps) => {
154
154
< div class = "mr-6 hidden items-center space-x-8 text-sm lg:flex" >
155
155
< a
156
156
class = { isDocsActive ( '/docs/headless/' ) }
157
- href = "/docs/headless/introduction"
157
+ href = "/docs/headless/introduction/ "
158
158
>
159
159
Headless
160
160
</ a >
161
161
{ rootStore . featureFlags ?. showStyled && (
162
- < a class = { isDocsActive ( '/docs/styled/' ) } href = "/docs/styled/introduction" >
162
+ < a
163
+ class = { isDocsActive ( '/docs/styled/' ) }
164
+ href = "/docs/styled/introduction/"
165
+ >
163
166
Styled
164
167
</ a >
165
168
) }
Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ export const DocsNavigation = component$(
58
58
< a
59
59
class = { cn (
60
60
'transition-color ease-step hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground rounded-base flex items-center px-4 py-2 text-sm duration-300' ,
61
- isLinkActive
61
+ isLinkActive ||
62
+ ( location . url . pathname ?. startsWith ( '/docs/headless/' ) &&
63
+ link . name === 'Headless' ) ||
64
+ ( location . url . pathname ?. startsWith ( '/docs/styled/' ) &&
65
+ link . name === 'Styled' )
62
66
? 'bg-accent text-accent-foreground font-bold'
63
67
: '' ,
64
68
) }
You can’t perform that action at this time.
0 commit comments