Skip to content

Commit a13bc7e

Browse files
Change active underline
1 parent bbeb2a9 commit a13bc7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/components/header/Navigation.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ const { addedIn, layout, title } = Astro.props
6565
<div id="bd-navbar1" class="navbar-collapse collapse me-lg-auto bd-navbar mb-none border-none">
6666
<ul class="navbar-nav">
6767
<LinkItem
68-
active={layout === 'docs' && !(title === 'Migrating to recent versions' || title === 'Migrating from Boosted' || title === 'Components')}
68+
active={layout === 'docs' && !(title === 'Migrating to recent versions' || title === 'Migrating from Boosted' || title === 'Components' || Astro.url.pathname.includes('/components/'))}
6969
href={getVersionedDocsPath('getting-started/introduction')}
7070
onclick="dataLayer.push({'event': 'clic', 'site_name':'accessibility-boosted', 'phase':'prod', 'track_category':'navbar', 'track_name':'docs'});"
7171
>
7272
Docs
7373
</LinkItem>
7474
<LinkItem
75-
active={title === 'Components'}
75+
active={title === 'Components' || Astro.url.pathname.includes('/components/')}
7676
href={getVersionedDocsPath('components')}
7777
onclick="dataLayer.push({'event': 'clic', 'site_name':'accessibility-boosted', 'phase':'prod', 'track_category':'navbar', 'track_name':'components'});"
7878
>

0 commit comments

Comments
 (0)