Repository navigation
fix(site): address accessibility, performance, and responsive audit findings - #333
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
… and visual polish Add visible # permalinks on h2 and h3 headings via a rehype plugin, previous/next navigation at the foot of each doc in nav order, and a north-east arrow marker on external prose links. Retitle the home page H1 to Introduction so the header wordmark and H1 do not repeat Thoth, raise table header size and contrast to 12px at --fg-2, style linked inline code chips as links, tighten heading bottom margins, mark the last TOC section at page bottom, and add copy-confirmation and touch-target refinements.
nicolasLuduena
force-pushed
the
site/audit
branch
2 times, most recently
from
November 27, 2026 22:41
1cb7dfa to
28b9315
Compare
nicolasLuduena
force-pushed
the
site/audit
branch
from
November 27, 2026 22:43
28b9315 to
380cccb
Compare
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
Audit Findings
.prose table { display: block }strips native table semantics in WebKit/VoiceOver; overflowing containers were not keyboard-focusablewrapTables(<div class="table-wrap">), restored nativedisplay: table; width: 100%, and madewatchOverflowsettabindex="0"+role="region"only while content overflows horizontally<pre>with an unlabeled SVG whose text nodes read in reversed/scattered DOM order and discarded the text sourceMermaid.astro; wraps each diagram in<figure class="mermaid-figure">, hides SVG internals behind<div role="img" aria-label="...">, and preserves the original Mermaid source in a collapsed<details class="diagram-source">fonts.googleapis.com/fonts.gstatic.com, 3 external requests/page)@fontsource-variable/interand@fontsource-variable/jetbrains-monoinfonts.cssusing the exact family names intokens.css(left untouched), added'Inter Fallback'metric overrides, and preloaded Latin Inter.woff2details[data-menu]shippedopenand collapsed in a deferred module script, causing severe CLS (0.525–0.694) on narrow viewports0at 1440, 768 and 375 on/and/docs/DESIGN/after the rebase18pxheight,22pxcenter-to-center) failed WCAG 2.5.8 AA (24px), sidebar summaries were17px, and coarse-pointer controls (17–43px) fell below44px; code copy buttons lacked distinguishing labels24px(28pxcenter-to-center) and sidebar summaries to25px; raised every coarse-pointer interactive control (.wordmark,.repo,.menu-toggle, sidebar/TOC/diagram summaries and links,.code-block-copy, footer link) to>= 44px; addedaria-label="Copy <lang> code"to copy buttonshtml { font-size: 200% }at1280×800) overflowed horizontally to2264px.site-bodytracks tominmax(0, min(var(--nav-width), 20vw)) minmax(0, var(--content-width)) minmax(0, min(var(--margin-width), 16vw)), matched.sidebarwidth cap, and usedmin-heighton.site-header-inner.doc-meta<summary>On this page</summary>sat outside<nav>when collapsed;#copy-statussat outside any landmark.doc-meta<details>inside<nav class="doc-meta" aria-label="On this page">(matchingNav.astro) and moved#copy-statusinside<main>@media (prefers-reduced-motion: reduce)used a wildcard*, *::before, *::after { transition-duration: 0s !important }kill ruletransition: noneon the site's transitioned selectors plushtml { scroll-behavior: auto }2.4 KB) shipped on all 18 pages even though only/docs/DESIGN/has a diagramMermaid.astroand render it only when the page HTML containsdata-language="mermaid"788 KBJS on/docs/DESIGN/.github/workflows/site.yml). Non-diagram pages load0 Bof Mermaidh2(3.91:1at darkest#71717Astop, passes WCAG AA large text>= 3:1), dark-only theme,.prose thcontrast (7.20:1), heading permalinks, prev/next links, external-link markers, home titletokens.cssuntouched) and to avoid conflicts with the parallel visual-polish PREvidence
npx astro preview --port 4331 --host 127.0.0.1/):10requests,3external (Google Fonts),6,436 BJS, desktop CLS0.0203/docs/DESIGN/):33requests,3external,903,519 Btotal<= 78rem): tablet768px0.6852, zoom640px0.5607, mobile375px0.6939, reflow320px0.5987/docs/DESIGN/):display: blockon<table>, parentMAIN.content.prose, not keyboard-focusable when overflowing/docs/DESIGN/):role="graphics-document document", no accessible name,ariaSnapshotread reversed/scattered SVG text ("Contract Attestor 3rd Party API Client..."), no text alternative12elements< 24px(sidebar summaries17px, TOC links18px); mobile coarse20elements< 44px+.code-block-copy30px1280×800):scrollWidth: 2264(overflowX: true).doc-metatoggle and#copy-statusoutside landmarksnpm run check --prefix site: 0 errors/warnings/hints;npm run build --prefix site: 18 pages built;biome ci .: 0 errors across 141 files)/):7requests,0external,2,479 BJS (-61%), desktop CLS0/docs/DESIGN/):32requests,0external,814,487 Btotal (-89 KB)1440,768,640,375,320):0on every single run/docs/DESIGN/):display: tableinside build-time<div class="table-wrap">, full nativetable/rowgroup/row/columnheader/cellroles; overflowing mobile wire table exposestabindex="0",role="region",aria-label="Scrollable table"/docs/DESIGN/):ariaSnapshotexposesfigure→img "Sequence diagram: Client, 3rd Party API, Attestor, Contract"+ expandablegroup: Diagram sourcecontaining the complete Mermaid source0non-inline elements< 24px(TOC links24px, sidebar summaries25px); mobile coarse0elements< 44px(.code-block-copy56×44px)1280×800):scrollWidth: 1280(overflowX: false)>= 5.54:1normal text,>= 3.91:1large gradienth2).doc-metatoggle inside<nav aria-label="On this page">,#copy-statusinside<main>No verification skill in this repo.
Merge Danger
Door: two-way
Static Astro site changes confined to
site/; reverting the commit restores previous markup, styles, and font links cleanly with no persisted state or contract impact.Blast Radius: low
Scoped strictly to
site/(documentation site only); does not touchsite/src/styles/tokens.css, workspace packages, contracts, or repo Markdown docs.