Skip to content

Rustdoc fails contrast check for a certain element. #151422

@JayanAXHF

Description

@JayanAXHF

Issue Synopsis

The Since <version> at the start of the docs page has a contrast ratio of 3.1:1 with the background on the dark theme, which fails both AA and AAA specifications for WCAG 2.

Image

The colors for the ayu theme pass WCAG Level AA, but fail Level AAA with a contrast ratio of 4.69:1. The light theme fails both AA and AAA specifications with a contrast ratio of 3.94:1.

Useful Links:

  1. WCAG Contrast Guidelines: https://www.w3.org/TR/WCAG22/#contrast-minimum
  2. WebAIM Contrast checker: https://webaim.org/resources/contrastchecker/

Metadata

Metadata

Assignees

Labels

A-a11yArea: Anything to do with accessibilityA-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions