Skip to content

a11y: active TOC link fails color-contrast #14382

@cderv

Description

@cderv

Reported in #14373.

Repro: https://github.com/alexpghayes/quarto-accessibility-reprex (post/post-1)

axe rule: color-contrast · impact: serious · tag: wcag2aa (1.4.3)
Target: #toc-section-1.nav-link.active — the currently-scrolled TOC entry.

The active TOC link is rendered with a lighter color against the page background, falling below WCAG AA 4.5:1. The contrast of the non-active entries appears fine — only the .active state is affected.

Part of #8706.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitybugSomething isn't workingthemesRelated to HTML theming or any other style related issue (like highlight-style)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions