Skip to content

Commit

Permalink
Fix activeBaseRegEx and activeClassName for home link. (#23)
Browse files Browse the repository at this point in the history
## Describe your changes
Fixes the active styling issue with the "home" link.

## Issue ticket number and link
None

## What type of PR is this? (check all applicable)

- [ ] Refactor
- [ ] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Database
- [X] Documentation Update
- [ ] Infrastructure
- [ ] CI/CD
  • Loading branch information
BillChirico authored Nov 18, 2023
2 parents dac90de + db0f168 commit a224809
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ const config: Config = {
{
to: '/apollo-docs/',
position: 'left',
label: 'Home'
label: 'Home',
activeClassName: 'navbar__link--active',
activeBaseRegex: '^(\/apollo-docs\/)$',
},
{
type: 'doc',
Expand Down

0 comments on commit a224809

Please sign in to comment.