Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support activeMatch for sidebar items, or match on URL hash #1565

Closed
4 tasks done
josefaidt opened this issue Nov 1, 2022 · 0 comments · Fixed by #2736
Closed
4 tasks done

support activeMatch for sidebar items, or match on URL hash #1565

josefaidt opened this issue Nov 1, 2022 · 0 comments · Fixed by #2736
Labels
enhancement New feature or request theme Related to the theme

Comments

@josefaidt
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When creating a sidebar structure from anchor points in a single document (think a list of commands on a single page), Vitepress does not highlight the active anchor, and instead highlights the sidebar item clicked to navigate to the page (e.g. clicking on help navigates to /commands/#help)

help -> /commands/#help

Describe the solution you'd like

  • support URL hash for sidebar active match
  • expose activeMatch with behavior similar to DefaultTheme.NavItem

Describe alternatives you've considered

n/a

Additional context

I may be able to implement this feature

Validations

@brc-dd brc-dd added enhancement New feature or request theme Related to the theme labels Mar 21, 2023
@github-actions github-actions bot added the stale label Aug 3, 2023
@brc-dd brc-dd removed the stale label Aug 4, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request theme Related to the theme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants