Skip to content

🐛 Bug: Heading anchor link reverts to default browser styling after click #2497

Description

Describe the bug

On the Tools page, clicking a section heading (e.g. "JSON Schema Tooling") changes its styling to a blue color with an underline and a visible pilcrow (¶) symbol. This is the site's intentional "active section" indicator (from components/Headlines.tsx, applied when a heading's slug matches the current URL's #hash), but visually it closely resembles broken or unstyled default browser link styling, which can make it look like a bug at first glance.

Steps To Reproduce

  1. Go to https://json-schema.org/tools
  2. Observe the "JSON Schema Tooling" heading — styled normally (light/white, bold, no underline)
  3. Click directly on the heading text
  4. Observe the heading now shows the "active section" style: blue text, underline, and a visible pilcrow

Expected Behavior

The active-section indicator should be visually distinct from a "broken" or default unstyled link, so users don't mistake intentional behavior for a bug. Possible improvements: use a color less similar to standard link-blue, and/or avoid underlining the full heading text (only the pilcrow icon).

Screenshots

Before Clicking:
Image

After Clicking:
Image

Device Information [optional]

OS: macOS
Browser: Chrome
version: 152.0.7977.83

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is the initial status for an issue that requires triage.🐛 BugIndicates that the issue is a bug or defect.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions