Jump to content

Gadfly/ACCESSIBILITY

From MindAttic Docs

Accessibility

How Gadfly Exams stands against WCAG 2.2 level AA, what was checked, what was fixed and how to check it again. The public statement for visitors is /accessibility (Gadfly.Server/Components/Pages/Site/Accessibility.razor); this file is the engineering record behind it.

Target

WCAG 2.2 level AA for every page Gadfly renders: the public site (landing, how it works, science, pricing, security, contact, legal, 404), the help center, the sign-in and account pages Gadfly styles (the forms themselves come from MindAttic.Authentication), the student pages (My exams, get ready / start exam, practice, results, notifications) and the staff pages (admin console, admin desk, assessments, exams, sources, review, grading, analytics, members).

We do not claim conformance. Automated checks and code review find only part of the barriers; nobody has yet tested the app with a screen reader, switch access or voice control. See Known gaps.

Shared tokens

All colours and spacing come from custom properties in Gadfly.Server/wwwroot/app.css (the public site adds its own palette on .site in site.css). Fix contrast or spacing at the token, not in a single rule.

Spacing scale (GAD-T507). --space-1 to --space-8: .25, .5, .75, 1, 1.5, 2, 3, 4 rem. --gutter is the page's side padding, clamp(1rem, 4vw, 2.5rem): 16px on a phone, growing to 40px; the public site's .site --gutter is the same value. --content-max (1100px) is the app shell's widest content. --target-min (24px) is the smallest pointer target for an icon-sized control (WCAG 2.5.8). New CSS uses these instead of ad-hoc values.

Applied: the top bar, main, the bare sign-in layout and the mock banner use --gutter; panels, cards, stat tiles, dialogs, help results and practice boxes use the scale for padding and gaps; .cards, .grid, .table-scroll and .stat-tiles leave --space-5 below them unless they end their container, so stacked sections never touch; the sign-in library's forms get one field per row with a --space-4 gap (the password label used to sit flush against the username box).

Design system (GAD-T689)

One system in app.css for every app page (the public site keeps site.css). Page passes compose these classes and tokens; a page stylesheet adds only what is specific to that page, using the tokens, never new sizes or colours. Bases that pages may need to override are written with :where() (zero specificity), so any page class wins.

Tokens

Group Tokens Use
Type --text-xs .8, --text-sm .9, --text-base 1, --text-lg 1.1, --text-xl 1.25 rem, --text-2xl fluid 1.4-1.6rem; --leading 1.5, --leading-tight 1.25; --measure 68ch h1 2xl, h2 xl, h3 lg, h4 base; hints and table cells sm; badges xs; prose width
Headings h1 0 0 --space-4; h2 --space-5 0 --space-3; h3 --space-5 0 --space-2; h4 --space-4 0 --space-2 a heading that is its container's first child has no top margin
Space --space-1..--space-8, --gutter, --content-max as above
Radius --radius-sm 4px (controls), --radius-md = --radius 6px (panels, cards), --radius-lg 10px (dialogs), --radius-pill squarer since GAD-T718
Border --border (decorative, --line), --border-strong (a control's only boundary, 3:1) write border: var(--border); for one colour use --line / --line-strong, never 1px solid var(--border) (that is invalid CSS and drops the border)
Elevation --shadow-1 (resting card), --shadow-2 (toast, dropped menu), --shadow-3 (dialog); --scrim (the dim behind a dialog or tour) slate-toned; no page hard-codes a shadow or scrim
Focus --focus-color (--accent), --focus-width 3px, --focus-offset 2px, --focus-on-stage (white, on the examiner's dark stage) the global :focus-visible ring on every link, button, input, select, textarea, summary and [tabindex]; never remove it, only change its offset
Targets --target-min 24px (WCAG 2.5.8 floor), --target-touch 44px buttons, inputs, selects and top-bar links are at least --target-min, and --target-touch under (pointer: coarse)
Status --info, --ok, --warn, --error and their --*-tint backgrounds; --accent-tint; --danger-ink (text on --error), --warn-ink (text on --warn) notices, badges, danger buttons, the mock banner
Grounds --bg near-white (page), --bg-deep light grey (bands, table heads, footer), --panel white (panels, cards, fields)
Accents --accent blue (links, primary buttons, focus), --clay dark slate (secondary text: numerals, concept labels, marks) --clay keeps its old name for the sheets that read it
Neutral edges --gold, --gold-soft old names kept as neutral slate greys for frames and highlights; never text or state. The classical ornament tokens (--sky, --sea, --sun, --marble-*, --meander, --laurel, --temple, --flutes, --shaft, --pilasters, --scene) are gone (GAD-T835)
Spacing --space-0 2px joins the scale (hairline gaps)
Type --font-sans (system UI sans, nothing loaded); --font-serif is an alias of it, so headings are sans too

Breakpoints. Custom properties can't be used in media queries, so these are the fixed values: phone below 40rem (640px; write max-width: 39.99rem / min-width: 40rem), tablet 40rem-64rem, desktop from 64rem (1024px). .grid tables start scrolling sideways below 900px. Every page must work at 320px with no horizontal page scroll (WCAG 1.4.10): only a .table-scroll box (or a .grid table) may scroll sideways.

Layout primitives

Class What it is
.page-header + .page-header-actions the title row: h1 left, actions right, actions wrap under the title on a phone; --space-5 below
.page-section one titled block of a page, --space-6 apart (h2.section on admin pages is a heading style, not this)
.stack (.stack-sm, .stack-lg, or set --stack-gap) vertical rhythm: children --space-4 apart, their own block margins dropped
.cluster (--cluster-gap) a wrapping row of buttons, badges or filters
.auto-grid (--grid-min, default 15rem; --grid-gap) a card grid: as many columns as fit, one on a phone. .grid is the data table and .cards the older card list; both keep working
.prose text at --measure
.table-scroll wraps a wide table so it, not the page, scrolls; js/scroll-regions.js adds tabindex="0", role="region" and a name while it overflows, so pages don't hand-write those
.visually-hidden text for screen readers only
.skip / .skip-link skip-to-content link, the first focusable thing in a layout

Components

  • Buttons. <button> is primary (accent fill). .secondary (outlined), .danger (destructive, --error fill), .ghost (quiet, --border-strong), .link (inline text). .button gives an <a> the same look (combine with the variants). Disabled: the disabled attribute on a button, aria-disabled="true" on a .button link.
  • Forms. .form stacks fields --space-4 apart (max 40rem); .field wraps a label, its control, an optional .field-hint and .field-error, each tied to the control with aria-describedby; an invalid control carries aria-invalid="true" (red border, doubled). A bare <label> wrapping its control still works. .check lays out a checkbox or radio with its text; fieldset + legend group related controls; .form-actions holds the buttons.
  • Tables. .grid on the <table>: cell padding, row dividers, muted header, top-aligned cells, caption, .num cells right-aligned with tabular figures, .zebra for striped rows. Wrap anything wider than a phone in .table-scroll.
  • Notices. .notice plus .info, .ok, .warn or .error: a tint background with a status-coloured left edge. Give it role="status" (or role="alert" for an error that needs attention now), and start the text with a word that says the status so colour is never the only cue.
  • Badges. .badge plus .badge-accent, .badge-ok, .badge-warn, .badge-error, .badge-info.
  • Panels and cards. .panel (a form-width box, .panel-wide for full width), .card / .cards, .dialog-box, .toast, .empty-state: padding from the space scale, --radius-md, --border.

App shell. MainLayout: skip link, <header class="topbar">, <nav>, <main id="content">. Below 40rem the nav, account controls, language switch and Help fold into a "Menu" <details class="nav-menu"> whose panel drops under the bar (closes on navigation); from 40rem it is one wrapping row. The top bar is not sticky; the mock banner is, and html { scroll-padding-top } keeps a focused control clear of it (WCAG 2.4.11). A new sticky bar must fit inside that padding.

Contrast of the colour tokens (GAD-T835, the professional theme). WCAG 2.x relative luminance; text needs 4.5:1, borders, icons and focus rings 3:1. Computed with the WCAG formula from the hex values in app.css (GAD-T849), rounded to one decimal; re-check any new colour with a contrast checker. Light is the default for every visitor; the dark column applies only under <html data-theme="dark">, which nothing sets yet.

Light tokens: --bg #f8fafc, --bg-deep #f1f5f9, --panel #ffffff, --ink #0f172a, --muted #475569, --line #e2e8f0, --line-strong #64748b, --accent #2563eb, --accent-tint #eff6ff, --clay #334155, --gold #94a3b8, --ok #15803d, --error #b91c1c, --info #1d4ed8, --warn #b45309, tints --info-tint #eff6ff, --ok-tint #f0fdf4, --warn-tint #fffbeb, --error-tint #fef2f2, --accent-ink/--danger-ink/--warn-ink #ffffff. Dark: --bg #0f172a, --bg-deep #0b1220, --panel #1e293b, --ink #e2e8f0, --muted #9aa8bc, --line #334155, --line-strong #7c8ba1, --accent #60a5fa, --accent-tint #1e3a5f, --clay #cbd5e1, --gold #64748b, --ok #4ade80, --error #f87171, --info #60a5fa, --warn #fbbf24, tints --info-tint #172554, --ok-tint #052e16, --warn-tint #3b2a06, --error-tint #3f1414, --accent-ink/--danger-ink/--warn-ink #0f172a. The palest tint is --info-tint/--accent-tint in light and --accent-tint in dark.

Pair Light Dark
--ink on --bg / --bg-deep / --panel 17.1 / 16.3 / 17.9 14.5 / 15.2 / 11.9
--ink on the palest tint 16.4 9.3
--muted on --bg / --bg-deep / --panel (hints, placeholders, table cells) 7.2 / 6.9 / 7.6 7.4 / 7.8 / 6.1
--muted on --info-tint / --accent-tint 7.0 / 7.0 6.1 / 4.8
--accent (links, secondary buttons, focus ring) on --bg / --bg-deep / --panel / --accent-tint 4.9 / 4.7 / 5.2 / 4.8 7.0 / 7.4 / 5.8 / 4.5
--accent-ink on --accent (primary buttons, active nav, tour launch) 5.2 7.0
--clay (numerals, concept labels, marks) on --bg / --bg-deep / --panel 9.9 / 9.5 / 10.4 12.0 / 12.6 / 9.9
--ok on --bg / --panel / --ok-tint 4.8 / 5.0 / 4.8 10.3 / 8.4 / 8.6
--error on --bg / --panel / --error-tint 6.2 / 6.5 / 5.9 6.5 / 5.3 / 5.7
--info on --bg / --panel / --info-tint 6.4 / 6.7 / 6.2 7.0 / 5.8 / 5.8
--warn on --bg / --panel / --warn-tint 4.8 / 5.0 / 4.8 10.7 / 8.8 / 8.3
--danger-ink on --error (danger buttons) 6.5 6.5
--warn-ink on --warn (mock tag); --ink on --warn-tint (mock banner) 5.0; 17.2 10.7; 11.2
--line-strong (control borders) on --bg / --bg-deep / --panel 4.6 / 4.3 / 4.8 5.2 / 5.4 / 4.2
--line-strong on --accent-tint / --info-tint / --ok-tint / --warn-tint / --error-tint 4.4 / 4.4 / 4.6 / 4.6 / 4.4 3.3 / 4.2 / 4.3 / 4.0 / 4.6
Focus ring: --accent on --bg / --panel (above); --focus-on-stage white on the stage's lightest slate (#1e293b) 4.9 / 5.2; 14.6 7.0 / 5.8; 14.6
Analytics meter: --meter fill on --track (non-text, 3:1; analytics.css, not part of GAD-T835) 3.2 not re-checked

--line (1.2 on --bg light, 1.7 dark) is for decorative dividers and card edges only; any control whose border is its only boundary uses --line-strong. --gold (2.5 on --bg light, 3.8 dark) is a neutral edge, never text or state. Every status is also said in words (WCAG 1.4.1).

Dark variant. GAD-T848 lightened the dark --muted (#94a3b8 to #9aa8bc) and --line-strong (#64748b to #7c8ba1), which were 4.49:1 on --accent-tint and 2.4 / 2.9 on --accent-tint / --warn-tint; both variants now pass every pair above.

The landing hero and sign-in page no longer have a painted backdrop (--scene is gone), so text there sits on --bg or --panel and the rows above apply.

Component colours that failed and were fixed:

Where Before After
Help search excerpt, highlighted word (.help-excerpt mark): muted text on the accent tint 4.23 light, 4.67 dark ink: 11.76 light, 9.41 dark
Input placeholders: browser default (about #757575 on --bg) 4.22 light --muted: 5.55 light, 7.46 dark
Get ready: the examiner preview caption's words not yet said (.preview-word, opacity: .55 on the ink) about 2.5 --muted (6.4 on --bg, 7.1 on --panel), then --ink as each word is said
Gaze calibration: the dot was cyan on a dimmed page, the prompt bar light text on a hard-coded dark not measured gold-soft ring with navy halo and white centre; the bar is --panel with --ink (15.4)
Tour spotlight ring (--accent on the dimmed page) below 3:1 white --focus-on-stage ring on the --scrim
Borders that never rendered: border: 1px solid var(--border) (and --border-strong) is invalid CSS, so the browser dropped it, in grading, review, sources, help, assessments, exams, tour, analytics no border border: var(--border) / var(--border-strong); single-colour edges use --line / --line-strong
Decorative-only borders on controls and swatches (--line, 1.5:1): examiner swatches, the calibration box, review quotes 1.5 --line-strong (4.1)

Professional theme (GAD-T835, GAD-T836)

The classical Greek look of GAD-T718 (parchment and marble grounds, an Aegean accent, serif headings, Greek-key, laurel, temple and colonnade ornaments, a painted Greek-isles backdrop) was replaced at the owner's request (GAD-T833) with a neutral, professional one. What GAD-T718 set up that still holds: light by default, the spacing sweep and the shadow and scrim tokens.

  • Light everywhere, by default. The app does not follow prefers-color-scheme: dark (app.css, site.css, demo.css, grading.css, analytics.css, the LTI picker and the transcript-verify page). The neutral slate dark variant is an opt-in: set data-theme="dark" on <html>. Nothing sets it yet; its contrast is in the dark column of the table.
  • Palette. Slate ink on near-white grounds, one blue accent, semantic status colours (see "Shared tokens"). --gold, --gold-soft, --clay and --font-serif remain only as neutral aliases other sheets still read.
  • Type. The system UI sans everywhere, headings included; nothing is downloaded, so the CSP is unchanged.
  • No ornaments. The ornament SVGs under wwwroot/assets/ornament/ are deleted, with every rule that drew them (.rule-meander, .rule-laurel, the temple brand mark, pilasters, colonnade, --scene). The top bar is flat and the sign-in card is a plain centred panel.
  • The examiner's stage is a plain dark slate panel (--stage-bg) framed in --panel; the focus ring inside it is white (--focus-on-stage, 14.6:1). The 3D examiner models are replaced by a glowing orb that pulses with her spoken words (GAD-T838, GAD-T839); the orb is drawn on the same stage.
  • Spacing sweep (from GAD-T718). Paddings, margins and gaps use --space-*; --shadow-* and --scrim replace every hard-coded shadow and backdrop.
  • Not changed. The analytics level ramp (--lv0..--lv5) and the meter/track colours in analytics.css; the email preview's white page; print styles (white paper).
  • Not verified in a browser by this record. Before relying on it, look at the landing page (/about), sign-in, My exams, get ready, the exam room, the inbox and an admin page at 320px and desktop.

What was checked and fixed (GAD-T507)

Earlier passes (GAD-T307, T365-T368) added the skip link, --line-strong, the blanket reduced-motion rule and sideways-scrolling tables. This pass:

  • 1.4.3 / 1.4.11 contrast. Tokens computed above. Fixed the help-search highlight and set ::placeholder to --muted explicitly.
  • 1.4.10 reflow at 320px. Found by measuring scrollWidth at 320px: Organization settings (a dropdown sized to its longest option pushed the whole form to 723px), Analytics (the scope dropdown) and the exams manager (screen-reader text inside a sideways-scrolling table was positioned against the page, not the table, so the page scrolled too). Fixed with max-width: 100% on form controls, position: relative on .grid, and min(Npx, 100%) in every repeat(auto-fill/auto-fit, minmax(...)) with a minimum of 200px or more. Data tables still scroll inside their own box, which 1.4.10 allows for two-dimensional content.
  • 2.1.1 keyboard. A sideways-scrolling table with no link or button inside can't be scrolled from the keyboard in every browser: js/scroll-regions.js (loaded from App.razor) gives such a box tabindex="0", a region role and a name from its caption or nearest heading, only while it actually overflows.
  • 2.4.7 / 2.4.11 focus visible, not obscured. Every control keeps the 2px --accent ring. The public site's skip link sat under the sticky mock banner (z-index 50 vs 1000); raised to 1200. html { scroll-padding-top: 4rem } keeps a focused control clear of a sticky bar (mock banner, assignments console bulk bar). On phones and short screens the mock banner is no longer sticky (it wraps to five lines at 375px and covered a fifth of the screen). Headings and <main> that receive focus only from script (Blazor's focus-on-navigate, the skip link) no longer draw a ring.
  • 2.5.8 target size. The help "?" mark is 24px; small row buttons, the tour's Skip, the integrity notice's small button, a.button, the toast close and help heading anchors have a 24px minimum. axe's target-size rule passes.
  • 1.3.1 info and relationships. 22 empty <th> cells (action columns in admin, grading, members, LTI, API keys, webhooks, platform organizations, and the dashboard's row-header column) now carry visually hidden text.
  • Mock banner styling. demo.css is linked from App.razor: Blazor keeps only one HeadContent per page, so on every page with its own stylesheet the banner lost its styles (no padding, text against the screen edge).
  • 3.2.6 consistent help. The app shell's Help link is in the same place on every page; the public site's footer now lists the Help center next to Request a demo on every page.
  • Reviewed, already in place: lang="en"; a <PageTitle> per page plus the version suffix; the skip link in both layouts; landmarks (header, nav with labels, main#content, footer); labels on every form field the scan reached; role="alert" on sign-in errors and role="status" on save messages and loading states; a blanket prefers-reduced-motion rule plus per-feature overrides; no fixed-height text boxes that clip under 1.4.12 text spacing (the exam card that has a fixed height scrolls).
  • 3.3.8 accessible authentication. Username and password fields have autocomplete and nothing blocks paste or password managers; two-step verification uses an authenticator code (autocomplete="one-time-code", pasteable); no CAPTCHA or cognitive test anywhere (the contact form uses a honeypot and a signed render time).
  • 3.3.7 redundant entry. No flow asks for the same information twice in one process.

Automated results

axe-core 4.10 (@axe-core/playwright, tags wcag2a/aa, wcag21a/aa, wcag22aa, best-practice) over 37 pages (14 public, the student's dashboard, My exams, practice, notifications and three get-ready pages, 18 staff pages), each in light and dark at 1280px and 320px, plus a horizontal-scroll check at 320px, against a local mock-mode run with the demo seed.

Rule Before After
color-contrast (help search highlight) 46 nodes (help search, light, both widths) 0
empty-table-header 16 nodes, 12 page/width runs 0
scrollable-region-focusable 10 nodes, 6 page/width runs 0
Horizontal scroll at 320px 3 pages (settings, analytics, exams manager) x 2 themes 0

The landing page's 4 contrast hits in the baseline were the exchange's fade-in animation caught mid-fade (a false positive; the scan now waits for it).

After GAD-T507 the same scan reports no violations on any page, theme or width. axe passing is a floor, not conformance: it can't judge reading order, meaningful names, keyboard traps in custom widgets or how a page sounds in a screen reader.

Languages (GAD-T526)

  • The page's <html lang> follows the interface language the student chose (English or Korean), so a screen reader uses the right voice (WCAG 3.1.1). Text in another language than the page carries its own lang: a language's own name in a picker, a student's Korean answer on an English staff page, a machine translation under it (WCAG 3.1.2).
  • A machine translation is always labelled in text, not by styling alone ("Machine translation from Korean into English").
  • Korean interface text follows the glossary and style in LOCALIZATION.md; the examiner's captions are always on, in the exam language.

Known gaps

  • The voice and camera exam is spoken and on camera by design. A student who cannot speak, hear or use a camera can't take it as designed; the instructor-granted accommodations (extra time, the eye-contact accommodation) and the institution's alternative arrangements cover that. The exam room (VoiceRoom.razor, voice-room.js, voice.css, webcam.css, examiner-gaze.css) was out of scope for edits in GAD-T507 because another change was in progress there; its open findings are noted on GAD-T507:
    • Hold to talk works only with a pointer (pointerdown/pointerup): no Space or Enter hold, so a keyboard user must stay in the default hands-free mode (2.1.1).
    • The end of an answer is detected after about two seconds of silence, with no setting to lengthen it short of the Done button and hold-to-talk mode (2.2.1 timing adjustable; consider a per-student longer pause as an accommodation).
    • The spoken caption is aria-hidden and the transcript log is aria-live="off", so a screen-reader user relies on the exam card's announcement of the question; verify with a screen reader.
    • The self-view note is .72rem and the transcript speaker labels .74rem uppercase; both pass contrast but are small.
  • No assistive-technology testing yet (NVDA, JAWS, VoiceOver, TalkBack, Dragon, switch access).
  • Status messages added with their live region in the same render (role="status" on a newly inserted element) can be missed by some screen readers; keeping an always-present empty region and filling it is more reliable.
  • Dense staff tables scroll sideways on phones rather than reflowing into cards.
  • Authentication forms are MindAttic.Authentication's markup; changes to them belong in that repo.

How to re-check

  1. Run the app in mock mode with the demo seed: $env:Gadfly__Demo__Password = '<a password>'; .\run.ps1 -Redeploy -RunDebug --seed-demo (https://localhost:7311). If the working tree doesn't build because of someone else's in-progress change, export HEAD to a scratch folder (git archive HEAD | tar -x -C <dir>), copy your changed files in, and run it there with ConnectionStrings__Gadfly pointing at a separate LocalDB database and ASPNETCORE_URLS at a free port.
  2. Scan with Playwright and axe: for each page, light and dark, at 1280px and 320px, new AxeBuilder({ page }).withTags(['wcag2a','wcag2aa','wcag21a','wcag21aa','wcag22aa']).analyze(), and check document.documentElement.scrollWidth > clientWidth for reflow. Sign in as demo.student and demo.owner.
  3. By hand: Tab through each page from the address bar (skip link first, every control reachable, ring always visible and not under the mock banner); zoom to 400% at 1280px; apply the 1.4.12 text-spacing bookmarklet; turn on reduced motion; switch the OS to dark mode.
  4. Contrast for a new colour: compute it against both --bg and --panel in both themes before adding it, and prefer an existing token.

Public site pass (GAD-T692)

Pages: landing, how it works, science, pricing, security, contact, privacy, terms, accessibility, 404, and the PublicLayout header and footer (site.css, site.js).

  • One palette. .site's --paper, --sheet, --rule, --rule-strong, --oxblood and --oxblood-ink are now aliases of app.css's --bg, --panel, --line, --line-strong, --accent and --accent-ink; the site's own copies of --ink, --muted, --error, --ok, --measure and --gutter are gone, so the app's values (and its contrast table) apply. Only the hero plate's slate colours stay site-specific (--slate-*, now including the two divider colours that were hard-coded). The 72rem page width stays; the serif headings went with the classical theme (GAD-T836).
  • Tokens. Spacing, radii, borders and small type use --space-*, --radius-sm, --border/--border-strong and --text-xs..--text-xl; the site's own :focus-visible rule is gone, so the global 3px --focus-color ring applies. The display sizes of the headings and the bands' fluid padding stay as they were.
  • Targets. Header links, language links, footer links and the brand link are at least --target-min; buttons and the contact form's controls --target-touch.
  • Status. The contact form's success and error notices use the --ok/--error border on their tints, as app.css's .notice.ok/.error; the wording says which it is, so colour isn't the only signal.
  • The live examiner. The landing hero's plate shows the examiner's orb (<ExaminerPresence> in a .live-examiner panel, GAD-T840) with role="img" and the accessible name site.landing.plate.alt. These pages are static (no circuit), so site.js starts its WebGL sphere; without script or WebGL the CSS orb shows. The hero stacks below 820px with the plate after the headline, lede and actions, and below 40rem the examiner sits above the exchange at most 14rem wide, so the h1 is the first thing on a phone screen.
  • Statement. /accessibility now states WCAG 2.2 AA as the target for every page, explicitly not a conformance claim, and describes the live examiner's accessible name and her reduced-motion stand-in.
  • Reconciled later. The statement's lines about the exam room's fallback (support.motion, limits.avatar) and the how-it-works line were brought in line with the exam room in GAD-T697 (see "No portraits" below).

Student pages (GAD-T693)

  • Get ready (StartExam). The examiner choice is a visible-legend fieldset of radio cards (name plus a short description, tied to its radio with aria-describedby), with no portrait; the selected card is marked by border, inset ring and tint, not colour alone. The preview is one <LiveExaminer> in the student's examiner, customization and framing: another examiner loads the other model (once per browser, model-cache.js), a new customization or framing restyles the loaded model in place (live-examiner.js handle update). The still portrait, its clothing-tint band and its skin and hair dots are gone, with their CSS; the voice preload no longer fetches the portrait. get-ready.css spacing, type sizes, radii and borders now come from the tokens; the selected look segment uses --accent-ink instead of a hard-coded white.
  • Shared student CSS. student.css (outside the exam room's rules, which GAD-T694 owns), practice.css and exams.css spacing and type sizes moved to --space-* / --text-*; the practice tag uses --radius-pill.
  • Markup pass (GAD-T704). My exams, My notifications, My research and My result open with one h1 in a .page-header; their blocks are .page-sections. On My exams each exam card and the practice offer is a section named by its own h2 (aria-labelledby); the empty list is a .notice.info with role="status". The exam catalog's filters are a named search landmark, each category is a section named by its h3, and the redundant title tooltip on the languages line is gone. My notifications is a .form: the opt-out checkbox is described by its explanation (aria-describedby), the save button sits in .form-actions, the loading line and the saved/failed message are status messages (the message as a .notice.ok / .notice.error). My research's text is a panel held to --measure; "no study" is a .notice.info; its message is a status .notice. My result's appeal is a labelled section with .fields: each textarea has a for-linked label and is described by its hint; the "not published" and appeal messages are status notices. These pages have no data tables, so no .table-scroll was needed.
  • Eye-contact indicator (PracticeGaze, ExaminerGaze). The live region moved from the whole indicator (which held a button and a disclosure, so every change re-read them) to its label alone, so only the state sentence is announced. The state is always said in words, the dot's colour only repeats it.
  • CSS. student.css no longer has fixed 760px widths outside the exam room: .panel.wide is full width, exam cards and the catalog are held to --measure, the camera preview is 12.5rem; its own a.button / .secondary copies are gone (app.css has them); the result, steps, check-mark and catalog rows use the space and border tokens. languages.css (exam languages panel, machine-translation bar) is on --space-*, --text-*, --radius-* and --border.

Exam room (GAD-T694)

The 3D examiner described in this section and the next is replaced by the glowing orb (GAD-T838, GAD-T839): the examiner is always the orb (<ExaminerPresence>), pulsing in rhythm with her spoken words, aria-hidden, and the gaze target is its centre.

  • The examiner is only ever live. The loading stand-in and every 2D fallback (no WebGL, model failed to load, slow device, lost graphics, no avatar at all) show her presence (live-examiner.js mountPresence, the <ExaminerPresence> sphere) over the stage, aria-hidden like the 3D head; its glow follows her voice syllable by syllable, so she still visibly speaks. The room no longer reads PortraitUrl/PortraitMouth and never shows portrait-f.png/portrait-m.png. The fallback notes say "live presence" instead of "picture" (examRoom.avatar.presence.*, en/ko/es).
  • Reduced motion keeps her live (WCAG 2.3.3 is about non-essential motion; her lip sync is essential content). Under prefers-reduced-motion the 3D examiner still loads, with TalkingHead's head movement cut to a third, blinking and lip sync kept, no camera moves; the presence turns no more and its fades and the gaze nudge are off. <LiveExaminer> follows the same rule.
  • Gaze target. The eye-contact check (examiner-gaze.js faceShare) uses her projected eye bones in 3D and, while the presence is shown, the centre of the sphere (the centre of .examiner-presence), the natural point a student looks at; with neither it keeps the fixed fraction of the stage as before.
  • Layout. A phone on its side (landscape, at most 32rem tall) keeps her beside the controls and lets her take most of the height; portrait phones stack her, controls and transcript as before.
  • Follow-ups done. The voice.css token sweep and the status-line review were done in GAD-T708 (below).

Exam room (GAD-T708)

  • Tokens. voice.css, examiner-gaze.css and webcam.css use the space, type, radius, border and colour tokens.
  • Answer draft. The draft of the student's answer is no longer a live region, so it isn't read out as they speak.
  • Status line. data-voice-status is only rewritten when its text changes; it is polite, and assertive only when the student must act.
  • Time left. A visually hidden timer region announces 5, 2 and 1 minute left, once each.
  • Caption. The word-by-word caption is aria-hidden.
  • Errors. Blocking errors use role="alert".

No portraits (GAD-T697)

  • portrait-f.png and portrait-m.png are deleted, with the PortraitUrl/PortraitMouth settings (an old setting is ignored), the catalog's portrait fields, the remembered examiner's portraitUrl and the voice preload's portrait fetch. The male examiner is offered when his model is installed.
  • The public statement (site.access.support.motion, site.access.limits.avatar) and the how-it-works line (site.how.during.examiner) now say she stays live under reduced motion and that without 3D she is the glowing circuitry sphere, never a still picture (en/ko/es).

Admin, platform and members pages (GAD-T695)

Pages: the admin dashboard, desk, assignments console, audit log, email preview, exam preview, exams manager, live sessions, LTI, API keys, plan, settings, usage, webhooks, research, student profile, students directory and system status (Pages/Admin/*), OrgMembers, Platform*; stylesheets admin*.css, staff-notice.css, demo.css.

  • Tables. All 38 data tables sit in a .table-scroll box (only the table scrolls sideways at 320px), have a caption (visually hidden where a heading already names the table) and scope="col" on every column header.
  • Page headers. The pages' own title rows (dash-head, xm-head, al-head, live-head, people-head) are now .page-header: h1 left, actions wrapping under it on a phone.
  • Desk views. The desk's Exams / Students / Student exams links claimed role="tab" without tab panels or arrow keys; they are now plain navigation links with aria-current="page", like the console's List / Grid links.
  • Bulk changes. The assignments console's bulk-change panel was position: sticky and covered the grid row with focus as you tabbed down (WCAG 2.4.11); it now scrolls with the page.
  • Messages. Result messages use .notice.ok / .notice.error (tinted, edge-coloured, the text says what happened) instead of page-specific boxes; the people-ghost / people-button buttons are the design system's .secondary and .button; sr-only / people-sr are .visually-hidden.
  • Targets and focus. Admin nav, desk and console view links, the exams "Actions" menu, the erase summaries and console grid cells are at least --target-min (and --target-touch for the nav under a coarse pointer). The admin nav's own 2px focus outline is gone so the global ring shows; the page-local button.danger that put --panel text on --error is gone, so danger buttons use --danger-ink.
  • Tokens. Every spacing, font size, radius and shadow in these stylesheets is a token; status edges use --warn for "needs a look soon" (was --accent) and decorative borders that are a boundary use --line-strong. Inline styles on the console message, the "To whom" fieldset and the email preview frame moved into classes (fieldset.checks, .email-frame; the frame keeps a white page because it shows an email as a mail client would).
  • Reflow. The audit log's detail list and the filter rows stack below 40rem; the staff hold dialog scrolls inside itself when the screen is shorter than its text.
  • Not done here. The admin pages' English-only text is unchanged (they were never localized); toggle buttons on the students directory and console show their open state by fill as well as by the panel that opens, with no aria-expanded yet; the sign-in, password-reset and invitation pages were already covered by GAD-T507 and only checked.

Inbox (GAD-T701)

/inbox (Components/Pages/Inbox.razor, inbox.css) and the top bar's Inbox link, built on the design system:

  • Structure. One h1 in a .page-header with its actions (Mark all as read, Email preferences); the list is a <ul> named "Messages"; an opened message is an <article> labelled by its h2, with a "Back to inbox" link first.
  • Not by colour alone. An unread message carries the word "Unread" (a badge), a bold title and an accent edge; the count line above the list says "2 unread of 5".
  • Top bar. The Inbox link reads "Inbox, 2 unread" to a screen reader (visually hidden text; the number pill is aria-hidden), and below 40rem the Menu toggle shows the same count so it isn't hidden in the closed menu. The count is read on load, on each navigation and when the inbox marks messages read, never on a timer.
  • Status. Marking read and failures are announced through a role="status" line, worded "Marked as read." / "That didn't work: ...".
  • Controls. Each "Mark as read" button is named with its message's title; targets meet --target-min; dates are <time datetime>.
  • Reflow. Each row wraps (badge, title, date, then the button) and long titles and bodies break anywhere, so 320px has no sideways scroll; the body keeps its line breaks (pre-line) at text-spacing overrides.
  • Links. A message's "Open" button follows only app-relative links.

Staff work pages (GAD-T696)

Analytics, help, guided tours, source library, review, grading (all but the student's own result) and the exam and assessment editors.

  • Tokens. analytics.css, help.css, tour.css, sources.css, review.css, grading.css, assessments.css and the builder rules in exams.css use the space, type, radius, border and shadow tokens instead of literal sizes. Removed what app.css now covers: .button-link (the CSV export is a .button), the second .visually-hidden, label.check, the global input, select, textarea width rule, .analytics-section caption, and the phone rule that turned analytics tables into display: block (.grid already scrolls in its own box below 900px).
  • Status colours. review.css no longer repaints .notice.warn red; warnings use --warn and its tint (integrity summaries marked minor, medium-severity integrity notes, the grading warn banner, unsure speech words), errors stay --error. The "judges disagreed" banner text is --danger-ink on --error (it was --panel). The mock-mode badge colours in grading.css now also follow an explicit data-theme.
  • Charts. Each segment of a mastery bar wide enough to hold it prints its level number, so a level never rests on the blue ramp alone (WCAG 1.4.1); the number's ink flips with the ramp in dark mode. The bar keeps its aria-label with every count, and "Show as table" stays. Meters stay decorative (aria-hidden, value printed beside them) and their track now has a --border-strong outline; the review page's concept-estimate bar is aria-hidden too.
  • Notices. Access-denied notices are .notice.error with role="alert"; the fairness, gaze and speech-recognition warnings are .notice.warn; caveats ("Agreement is not validity", "The typed group chose itself") are .notice.info; the help "nothing matched", sign-in and missing-text notices say their status by class.
  • Tables. Every header cell in a <thead> on these pages has scope="col".
  • Labels. The source library's file picker and the rubric's understanding, variant and misconception rows (which had only placeholders), and the panel-calibration grouping box, now have accessible names.
  • Help. The topic contents and the search row wrap at 320px; contents links and the summary meet --target-min; the guide text keeps to --measure and long code wraps instead of widening the page; tip and warning callouts get the --ok/--warn tints; the search breadcrumb marks the current page with aria-current. The contents column now folds above the text below 64rem (it was 820px).
  • Tours. The callout uses --radius-lg and --shadow-3, scrolls itself when taller than the screen, and the launch button meets --target-min.
  • Responsive. Grids use minmax(0, 1fr) / min(…, 100%) so long titles, objective names and source lines wrap instead of pushing the page sideways; breakpoints moved to the system's 40rem / 64rem.
  • Assessment editor and grading workspace (GAD-T709). The markup pass deferred while GAD-T703 changed these pages. AssessmentEditor.razor: access-denied and unknown-step notices are .notice.error, the published, no-objectives and publish-first notices .notice.info, "students have completed this assessment" .notice.warn, "ready to publish" .notice.ok; the save message is a .notice with role="status" (.as-message removed) and the loading line is a status. In the policy step the weights total is tied to both weight inputs with aria-describedby, marks them aria-invalid when it is off, and says "(not 100%)" in words instead of only turning red; the GAD-T703 "Grading" radio group keeps its legend, and its radios are named per form so the locked policy's change request does not share them. GradingSession.razor: every <thead> cell has scope="col" and each data table a visually hidden caption (score comparison, criterion levels, AI evaluation, audit trail); tables sit in .table-scroll; the GAD-T703 "Levels (AI / human)" column prints both numbers and the signed difference, and the agreement line is plain text; a reconciliation criterion two or more levels from the human's is said in words, not only by the dissent colour. Notices say their status by class (refusals .notice.error with role="alert", the AI-grading failure .notice.error, anonymous marking .notice.info, "Pending Grade Reconciliation" .notice.warn, the action result .notice.ok/.error in a status region). Controls repeated per objective (level, score, comment, evidence, cause, resolved scores, second reviewer, resolution, amendment level and score) carry the objective's title in a visually hidden part of their label, so each has a distinct accessible name. MyResult.razor belongs to GAD-T693.
Part of Gadfly.
From Gadfly/docs/ACCESSIBILITY.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.