Repository navigation
Add accessibility statement and fix pre/code dark-mode contrast - #57
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/_accessibility.html), linked from both the modern (FastAPI/Jinja2) footer and the legacy/e/footer.<pre>whosecolor: #222is not overridden in dark mode (onlypre codeis), 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
n2t/templates/accessibility.html- accessibility statement page, served by the existinghuman_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.