Background
This task will serve to identify the accessibility requirements for the collapsing and expanding states of the Table of Contents feature
Initial notes from team meeting
BW: create a spike ticket similar to sticky header, evaluate location in DOM, tab/keyboard behavior, and impact to screenreader users
BW: I anticipate the collapsing behavior and nested lists are areas that could require more thought. What about no js users? Do we need to use checkbox hacks for collapsing sections?
NR: I’ve found w3’s best practices for example components to be a pretty helpful resource in regards to accessibility recommendations. Although not exact, their accordion exaxmple/accessibility features might be the most similar to TOC with some notable exceptions. Or maybe there is a more relevant set of guidelines for a TOC component somewhere else?
NR: Are there any animations associated with TOC that should be able to be turned off by the user (e.g. through the prefers-reduced-motion media query)
NR: In the POC, the top sections in the TOC act as both a link that jumps the user to the section and as a toggle to reveal the subsections when clicked. Is this problematic for accessibility? What should happen when a user presses the enter or space key on a top section in the TOC?
OV: Do we want to do any specific type of accessibility testing. To my knowledge, we still have a contract with the AFB. Would need to renew this, so there would be some lead-in team for contract processing
JR: We should have some kind of basic checks for accessibility (continuous integration tests).
JR: Is there any circumstances where a sticky table of contents might be jarring to certain classes of users? (Perhaps reduced motion is the only one)
Questions to be answered
Evaluate the following:
- location in DOM
- tab/keyboard behavior
- impact to screenreader users