Guidepup transcript: component/accordion.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: component/accordion.html
- State: initial
- Theme: light/system
- Direction: ltr
Phrases
Simulator limitation: jsdom reported 42 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, current page
- link, Experiments
- link, Landing demo
- link, Community ideas
- link, Evidence
- link, Methodology
- end of navigation, Primary
- end of banner
- main
- paragraph
- Disclosure
- end of paragraph
- heading, Accordion, level 1
- paragraph
- Expand and collapse supporting information without losing keyboard access.
- end of paragraph
- strong
- Baseline:
- end of strong
- USWDS 3.14.0 with authored fixture markup.
- link, Official component guidance
- ·
- link, Official accessibility tests
- link, Evaluate this component
- link, Open forced-colours capture
- region, Purpose
- heading, Purpose, level 2
- paragraph
- Put long secondary content behind a short, named control so a page stays scannable while the content remains reachable.
- end of paragraph
- end of region, Purpose
- region, When to use it
- heading, When to use it, level 2
- list
- listitem, level 1, position 1, set size 3
- Secondary guidance is long enough to interrupt the primary task.
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- The heading of each disclosure makes sense without the hidden content.
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- People need to compare several short sections without leaving the page.
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, When to use it
- region, When not to use it
- heading, When not to use it, level 2
- list
- listitem, level 1, position 1, set size 3
- The content is essential to every user on first read; keep it visible.
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- You need to hide a single sentence; plain text is less work.
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- The control would be used as a menu, filter, or navigation pattern.
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, When not to use it
- region, Implementation
- heading, Implementation, level 2
- list
- listitem, level 1, position 1, set size 4
- Use a real button inside a heading; never a div with a click handler.
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- Give the button aria-controls pointing at a unique panel id.
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- Keep aria-expanded in sync with the panel's visible state.
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- Use the official USWDS accordion JavaScript rather than a lookalike handler.
- end of listitem, level 1, position 4, set size 4
- end of list
- paragraph
- link, Read the implementation guide
- end of paragraph
- end of region, Implementation
- region, Keyboard behavior
- heading, Keyboard behavior, level 2
- list
- listitem, level 1, position 1, set size 4
- Tab reaches each disclosure button once.
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- Enter and Space both toggle the panel.
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- Focus stays on the button after toggling.
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- No keyboard trap is created inside the panel.
- end of listitem, level 1, position 4, set size 4
- end of list
- end of region, Keyboard behavior
- region, User preferences
- heading, User preferences, level 2
- list
- listitem, level 1, position 1, set size 3
- The panel stays readable when text is resized and when JavaScript is unavailable.
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- Reduced motion must not remove essential state feedback.
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- Forced colors must keep the boundary and focus indicator visible.
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, User preferences
- region, Common implementation mistakes
- heading, Common implementation mistakes, level 2
- list
- listitem, level 1, position 1, set size 4
- Styling a link as a disclosure or omitting the button element.
- end of listitem, level 1, position 1, set size 4
- listitem, level 1, position 2, set size 4
- Updating visual state without updating aria-expanded.
- end of listitem, level 1, position 2, set size 4
- listitem, level 1, position 3, set size 4
- Duplicating ids when the same component appears twice.
- end of listitem, level 1, position 3, set size 4
- listitem, level 1, position 4, set size 4
- Treating the loading-state flash as solved when scripts fail.
- end of listitem, level 1, position 4, set size 4
- end of list
- end of region, Common implementation mistakes
- region, How to test it
- heading, How to test it, level 2
- list
- listitem, level 1, position 1, set size 3
- Test every collapsed and expanded state with a real key press.
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- Test content availability with JavaScript disabled.
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- Test with 200% text, forced colors, and a narrow viewport.
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, How to test it
- region, Known limitations
- heading, Known limitations, level 2
- list
- listitem, level 1, position 1, set size 2
- This fixture is author-created markup using official USWDS assets, not a byte-for-byte copy of an upstream example.
- end of listitem, level 1, position 1, set size 2
- listitem, level 1, position 2, set size 2
- The baseline is rendered with a small fixture stylesheet for consistent page framing.
- end of listitem, level 1, position 2, set size 2
- end of list
- end of region, Known limitations
- region, Experiments involving this component
- heading, Experiments involving this component, level 2
- article
- paragraph
- Cross-component capability
- Prototype available
- end of paragraph
- heading, Native dark-mode support, level 2
- link, Native dark-mode support
- end of heading, Native dark-mode support, level 2
- paragraph
- A semantic token layer that lets USWDS components respond to system appearance and an explicit user override without replacing upstream components.
- end of paragraph
- paragraph
- Components:
- link, Accordion
- ,
- link, Alert
- ,
- link, Banner
- ,
- link, Form controls
- . Review: accepted.
- end of paragraph
- paragraph
- User preferences: Dark and light appearance, Forced colours, Increased contrast, Reduced motion, Large text, Narrow viewport and reflow, RTL and language, No JavaScript.
- end of paragraph
- paragraph
- Accessibility concerns: Incomplete theme coverage.
- end of paragraph
- paragraph
- Automated evidence: 0 of 0 fixture routes collected (none). Manual test definitions: 26; published evidence records none as completed.
- end of paragraph
- paragraph
- Evidence: No automated evidence in this build.
- end of paragraph
- paragraph
- link, Evaluate
- link, Registered demonstration
- end of paragraph
- end of article
- end of region, Experiments involving this component
- region, Fixtures and comparison
- heading, Fixtures and comparison, level 2
- list
- listitem, level 1, position 1, set size 3
- link, Open the evaluation workspace
- (3 registered states)
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- link, Open the baseline fixture independently
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- link, Open the experimental fixture independently
- end of listitem, level 1, position 3, set size 3
- end of list
- end of region, Fixtures and comparison
- region, Test scenarios
- heading, Test scenarios, level 2
- list
- listitem, level 1, position 1, set size 1
- accordion-expand: Use keyboard to open disclosure and confirm its state is exposed (keyboard)
- end of listitem, level 1, position 1, set size 1
- end of list
- end of region, Test scenarios
- region, Evidence
- heading, Evidence, level 2
- paragraph
- No evidence has been collected in this build. Human review is pending.
- end of paragraph
- paragraph
- link, Open the evidence index
- end of paragraph
- end of region, Evidence
- region, Sources and history
- heading, Sources and history, level 2
- list
- listitem, level 1, position 1, set size 3
- link, #4577 Configurable accordion icon colors
- (closed-not-planned)
- end of listitem, level 1, position 1, set size 3
- listitem, level 1, position 2, set size 3
- link, #5817 Accordion loading flash
- (open-pr)
- end of listitem, level 1, position 2, set size 3
- listitem, level 1, position 3, set size 3
- link, #5861 Accordion contrast false positives
- (closed-not-planned)
- end of listitem, level 1, position 3, set size 3
- end of list
- paragraph
- Source lock:
- link, v3.14.0
- . This page describes an independent lab fixture, not an official USWDS example.
- end of paragraph
- end of region, Sources and history
- end of main
- contentinfo
- paragraph
- MIT-licensed comparison code. USWDS and third-party assets keep their own licensing terms. This lab is independent of GSA, USWDS, OGDS, and CivicActions.
- end of paragraph
- paragraph
- link, Methodology, provenance and governance
- ·
- link, Evidence
- ·
- link, Source lock
- end of paragraph
- end of contentinfo
- end of document
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.