This task addresses keyboard navigation and focus management.
Acceptance Criteria:
- "Contents" button can be reached and activated by keyboard
- Escape key closes the table of contents and focus is restored on the "Contents" button.
- "Clicks" on TOC section links, navigates to that section, and does not restore focus to the "Contents" button.
- "Clicks" on "top" link, navigates to the top of the page, and does not restore focus to the "Contents" button.
- When the table of contents opens, focus is placed on the first item (Top link)
- When the table of contents is open, the Tab key moves the focus from one item to the next/previous
- Confirm all of the above with iOS or simulator with both attached physical keyboard and with VoiceOver accessibility mode