Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Anchor links in various documentation component previews are broken #491

@jeremyong

Description

@jeremyong

Describe the bug
Visiting the documentation at primer.css, many of the component previews control navigation via anchor links in some manner, and attempting to navigate to the anchor ultimately reloads the site in the preview as opposed to working as intended.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://primer.style/css/components/tabnav
  2. Click on any of the tabs
  3. Observe the issue

Expected behavior
Components should behave in the preview as you would expect during development and production.

Screenshots
image
After clicking, "Bar tab", this becomes:
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 111.0.5563.147

Additional context
Other components like the subnav also seem to exhibit this issue, but I didn't go through to identify every instance.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions