Skip to content

Add accessibility statement and fix pre/code dark-mode contrast - #57

Merged
jsjiang merged 3 commits into
developfrom
20260520-accessibility-statement-and-fixes
May 26, 2026
Merged

jsjiang merged 3 commits into
developfrom
20260520-accessibility-statement-and-fixes

Conversation

@adambuttrick

@adambuttrick adambuttrick commented May 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds the UC-mandated accessibility statement to N2T.net as a dedicated page (/_accessibility.html), linked from both the modern (FastAPI/Jinja2) footer and the legacy /e/ footer.
  • Fixes a WCAG 1.4.3 (contrast) failure: identifier-format examples used a bare <pre> whose color: #222 is not overridden in dark mode (only pre code is), rendering near-black text on a near-black background. Wrapping the content in <pre><code> resolves both the contrast issue and the <code> semantics (WCAG 1.3.1).

Changes

  • New n2t/templates/accessibility.html- accessibility statement page, served by the existing human_pages() route.
  • n2t/templates/base.html - footer "Accessibility" link.
  • legacy_e_files/e/footer.html- legacy footer "Accessibility Statement" link.
  • n2t/templates/index.html, schemes.html, base.html- <pre> -> <pre><code> for identifier examples.

- Add UC-mandated accessibility statement page (/_accessibility.html)
  for N2T.net, linked from the modern and legacy footers
- Wrap identifier-format examples in <pre><code> so they pick up the
  dark-mode color rule, fixing a WCAG 1.4.3 contrast failure

Refs: CDLUC3/arks-n2t-roadmap#32
@adambuttrick
adambuttrick requested review from jsjiang and sfisher May 21, 2026 00:03

@jsjiang jsjiang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@jsjiang
jsjiang merged commit 78be836 into develop May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants