Guidepup transcript: experiment/preferences-panel.html — initial
Method: virtual screen reader over a DOM snapshot. Not a real VoiceOver, NVDA, or JAWS test.
- Run: 2026-11-24T00-32-17-199Z
- Source: @uswds/uswds 3.14.0 (npm)
- Git revision: 5ae55174a465533f294c999f181da47d514b2d75
- Browser: 156.0.8078.4
- Viewport: 1280x850
- Page: experiment/preferences-panel.html
- State: initial
- Theme: light/system
- Direction: ltr
Transcript truncated at 400 phrases.
Phrases
Simulator limitation: jsdom reported 18 unsupported pseudo-element style request(s). CSS-generated content may be omitted.
- document
- link, Skip to main content
- banner
- link, USWDS Futures Lab Independent research and comparison pilot
- USWDS Futures Lab
- Independent research and comparison pilot
- end of link, USWDS Futures Lab Independent research and comparison pilot
- navigation, Primary
- link, Overview
- link, Evaluate
- link, Components
- link, Experiments, current page
- link, Landing demo
- link, Community ideas
- link, Evidence
- link, Methodology
- end of navigation, Primary
- end of banner
- main
- paragraph
- New component · Prototype available
- end of paragraph
- heading, User preferences panel, level 1
- paragraph
- A proposed component that gives people a consistent way to choose appearance, text size, contrast, and motion without a third-party overlay.
- end of paragraph
- strong
- No equivalent component is included in stable USWDS 3.14.0.
- end of strong
- The proposal is shown on its own; inventing a baseline would misrepresent upstream. This is a capability gap, not an accessibility failure.
- strong
- Review status: pending.
- end of strong
- No human reviewer has recorded a decision.
- Evidence: No automated evidence in this build.
- region, Working demonstration
- heading, Working demonstration, level 2
- paragraph
- link, Open the demonstration
- No stable component is registered, so the evaluation workspace does not invent a baseline.
- end of paragraph
- paragraph
- No stable component maps to this proposal. The demonstration page is the proposal.
- end of paragraph
- paragraph
- The evaluation workspace does not mirror keyboard input. Open either implementation independently for keyboard and assistive-technology testing.
- end of paragraph
- end of region, Working demonstration
- region, Proposal and context
- heading, Proposal and context, level 2
- paragraph
- strong
- Status: Prototype. Automated evidence may exist; human review is pending.
- end of strong
- end of paragraph
- paragraph
- strong
- Category:
- end of strong
- New component
- strong
- Baseline:
- end of strong
- No equivalent component in stable USWDS v3.14.0
- strong
- Proposal:
- end of strong
- A native-control panel for appearance, text size, contrast, and motion.
- end of paragraph
- heading, Why this exists, level 2
- paragraph
- USWDS issue
- link, #5069
- asked for personalization: light/dark preferences, text controls, and settings documentation. It was closed as not planned amid limited maintainer capacity. Issue
- link, #4407
- separately explored
- code
- prefers-contrast
- end of code
- .
- end of paragraph
- paragraph
- Teams that need these controls often add third-party accessibility overlays. Those overlays can conflict with assistive technology, hide content, and create a parallel interface. A small, native, documented component is a more maintainable alternative.
- end of paragraph
- heading, What stable USWDS provides, level 2
- paragraph
- Stable USWDS provides accessible primitives (radios, selects, fieldsets, buttons, status messages) and guidance for building forms. It does not provide a preferences panel, a storage contract, or a documented reset behavior.
- end of paragraph
- paragraph
- The lab does not invent a baseline panel. The absence is stated as a capability gap.
- end of paragraph
- heading, What is proposed, level 2
- paragraph
- A panel with four settings:
- end of paragraph
- list
- listitem, level 1, position 1, set size 4
- strong
- Appearance:
- end of strong
- system, light, or dark.
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- strong
- Text size:
- end of strong
- 100%, 112.5%, or 125% root scaling.
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- strong
- Contrast:
- end of strong
- default or stronger borders/focus.
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- strong
- Motion:
- end of strong
- follow system or reduce.
- end of listitem, level 1, position 4, set size 4
- end of list
- paragraph
- The panel uses native radios and selects, a labelled fieldset, a visible label for each control, a
- code
- role="status"
- end of code
- message, and a reset button. It stores only those four values in
- code
- localStorage
- end of code
- under
- code
- uswds-lab-prefs
- end of code
- . It does not store personal information and does not send data anywhere.
- end of paragraph
- heading, What changed in the lab, level 2
- paragraph
- The shell uses semantic tokens and
- code
- data-*
- end of code
- attributes so the panel can change the lab interface. The fixture runtime reads the same stored preference, so a fixture opened from the panel reflects it. The stable baseline pane remains unchanged.
- end of paragraph
- heading, Scope boundaries, level 2
- list
- listitem, level 1, position 1, set size 5
- This is not a replacement for accessible design or assistive technology.
- end of listitem, level 1, position 1, set size 5
- listitem, level 1, position 2, set size 5
- It does not override forced colors.
- end of listitem, level 1, position 2, set size 5
- listitem, level 1, position 3, set size 5
- It does not replace browser zoom or a user stylesheet.
- end of listitem, level 1, position 3, set size 5
- listitem, level 1, position 4, set size 5
- It is not a third-party overlay and does not hide page content.
- end of listitem, level 1, position 4, set size 5
- listitem, level 1, position 5, set size 5
- Storage is per origin and may be unavailable in private browsing; the page reports that failure and remains usable.
- end of listitem, level 1, position 5, set size 5
- end of list
- heading, Evidence status, level 2
- paragraph
- Automated tests check persistence, reset, keyboard operation, no-JavaScript readability, dark appearance, and focus. Evidence is published on the lab evidence page after collection. The decision record remains pending.
- end of paragraph
- heading, Known limitations, level 2
- list
- listitem, level 1, position 1, set size 4
- The panel does not yet appear on every page as a floating utility; the page is the demonstration.
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- Text size is a root font-size scale, not a full text-spacing override.
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- Contrast preference is a small enhancement, not a high-contrast mode.
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- A real screen-reader and speech-input session is outstanding.
- end of listitem, level 1, position 4, set size 4
- end of list
- end of region, Proposal and context
- region, Implementation guidance
- heading, Implementation guidance, level 2
- heading, Markup, level 2
- code
- <form id="prefs-form" aria-describedby="prefs-help"> <p id="prefs-help">Changes apply immediately and are stored in this browser.</p> <fieldset> <legend>Appearance</legend> <label><input type="radio" name="theme" value="system" checked> System</label> <label><input type="radio" name="theme" value="light"> Light</label> <label><input type="radio" name="theme" value="dark"> Dark</label> </fieldset> <label for="pref-text-size">Text size</label> <select id="pref-text-size">…</select> <button type="button" id="prefs-reset">Reset to system defaults</button> <p id="prefs-status" role="status" aria-live="polite"></p> </form>
- end of code
- paragraph
- The real page uses labelled selects for text size, contrast, and motion, and a fieldset with native radios for appearance. Every control has a visible label. There is no custom
- code
- role="radiogroup"
- end of code
- ; the native fieldset and input behavior are used.
- end of paragraph
- heading, Behavior, level 2
- paragraph
- code
- site/assets/prefs.js
- end of code
- :
- end of paragraph
- list
- listitem, level 1, position 1, set size 7
- reads
- code
- uswds-lab-prefs
- end of code
- from
- code
- localStorage
- end of code
- inside
- code
- try/catch
- end of code
- ;
- end of listitem, level 1, position 1, set size 7
- listitem, level 1, position 2, set size 7
- applies
- code
- data-theme
- end of code
- ,
- code
- data-text-size
- end of code
- ,
- code
- data-contrast
- end of code
- , and
- code
- data-motion
- end of code
- on
- code
- <html>
- end of code
- ;
- end of listitem, level 1, position 2, set size 7
- listitem, level 1, position 3, set size 7
- updates the page immediately on
- code
- change
- end of code
- ;
- end of listitem, level 1, position 3, set size 7
- listitem, level 1, position 4, set size 7
- writes the four values back to storage;
- end of listitem, level 1, position 4, set size 7
- listitem, level 1, position 5, set size 7
- reports storage failure in the status region without breaking the page;
- end of listitem, level 1, position 5, set size 7
- listitem, level 1, position 6, set size 7
- resets by removing the key and returning to
- code
- system
- end of code
- /default;
- end of listitem, level 1, position 6, set size 7
- listitem, level 1, position 7, set size 7
- reloads the iframe preview so it reads the current preference.
- end of listitem, level 1, position 7, set size 7
- end of list
- paragraph
- An inline head script applies the stored values before CSS paints, which reduces a flash of the wrong theme. The module re-applies the same values after load.
- end of paragraph
- heading, CSS, level 2
- paragraph
- The shell tokens are in
- code
- site/assets/base.css
- end of code
- :
- end of paragraph
- code
- :root[data-text-size="large"] { font-size: 112.5%; } :root[data-text-size="x-large"] { font-size: 125%; } :root[data-contrast="more"] { --border: currentColor; --muted: var(--ink); } :root[data-motion="reduce"] * { animation-duration: .01ms !important; … }
- end of code
- paragraph
- Dark appearance is resolved by
- code
- prefers-color-scheme
- end of code
- for
- code
- system
- end of code
- and by
- code
- data-theme="dark"
- end of code
- for an explicit choice. The experiment fixtures read the same stored values in
- code
- site/assets/fixture.js
- end of code
- .
- end of paragraph
- heading, No-JavaScript behavior, level 2
- paragraph
- The page, labels, and explanation remain readable. The controls are present but do not save; a
- code
- <noscript>
- end of code
- message says so. The fixtures remain readable and the dead disclosure buttons are hidden by CSS. This is a documented fallback, not a claim that preferences work without JavaScript.
- end of paragraph
- heading, Accessibility notes, level 2
- list
- listitem, level 1, position 1, set size 6
- Native controls, visible labels, and a fieldset/legend for appearance.
- end of listitem, level 1, position 1, set size 6
- listitem, level 1, position 2, set size 6
- Status updates use
- code
- role="status"
- end of code
- and
- code
- aria-live="polite"
- end of code
- .
- end of listitem, level 1, position 2, set size 6
- listitem, level 1, position 3, set size 6
- No color-only state; the selected radio is the state.
- end of listitem, level 1, position 3, set size 6
- listitem, level 1, position 4, set size 6
- The panel works at 320px and with long labels; controls are allowed to wrap.
- end of listitem, level 1, position 4, set size 6
- listitem, level 1, position 5, set size 6
- Storage failure is announced, not silent.
- end of listitem, level 1, position 5, set size 6
- listitem, level 1, position 6, set size 6
- The panel does not trap focus or open a modal.
- end of listitem, level 1, position 6, set size 6
- end of list
- heading, What a real upstream component would need, level 2
- paragraph
- A shared placement strategy, a documented storage key and version, a server-rendered fallback, a reset contract, and evidence that each setting actually helps the intended users. The panel must not imply that a user preference fixes an inaccessible component.
- end of paragraph
- heading, Known gaps, level 2
- list
- listitem, level 1, position 1, set size 3
- No Voice Control or real screen-reader session.
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- No cross-origin or server-side preference synchronization.
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- No preference for language or writing direction; those belong to content, not a display panel.
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, Implementation guidance
- region, Evidence and limitations
- heading, Evidence and limitations, level 2
- paragraph
- No automated evidence in this build.
- end of paragraph
- paragraph
- link, Open the evidence index
- for transcripts, screenshots, axe observations, and coverage gaps.
- end of paragraph
- paragraph
- Automated evidence is not human approval. The decision record remains authoritative.
- end of paragraph
- end of region, Evidence and limitations
- region, Related USWDS history
- heading, Related USWDS history, level 2
- list
- listitem, level 1, position 1, set size 2
- link, #5069 Better personalization support
- (motivation)
- end of listitem, level 1, position 1, set size 2
- listitem, level 1, position 2, set size 2
- link, #4407 Support prefers-contrast
- (adjacent-requirement)
- end of listitem, level 1, position 2, set size 2
- end of list
- end of region, Related USWDS history
- region, Experiment files
- heading, Experiment files, level 2
- list
- listitem, level 1, position 1, set size 4
- link, README
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- link, Implementation
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- link, Test plan
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- link, Decision record
- end of listitem, level 1, position 4, set size 4
- end of list
- paragraph
- AI assistance disclosed by the contributor: issue research, initial implementation, test scaffolding, documentation drafting. A human reviewer must assess the evidence before any upstream proposal.
- end of paragraph
- end of region, Experiment files
- end of main
- contentinfo
- paragraph
Limits
- Guidepup is a simulator over the DOM; CSS-only differences (including dark appearance) are not represented in speech.
- Axe and browser assertions are separate evidence. A transcript difference is not automatically a regression.
- Real assistive-technology testing remains outstanding.