Open didoesdigital opened 4 years ago
TODO: check for additional Table of Contents items, such as the new Metronome section for frequently anticipate questions
Note: this page is under active development so the requirements of this issue may change: https://github.com/didoesdigital/typey-type/pull/146/ — merged!
Overview
The support page is long, making it difficult to understand at a glance or navigate efficiently.
Approach
src/pages/support/Support.tsx
.VO
+A
to read the page.VO
+U
to open the rotor menu and the right arrow key to tab through the menus to the Landmarks menu then the down arrow to find "On this page navigation".VO
+ arrow keys to navigate through the links and thenVO
+Space
to activate a link.yarn test
.Design
Code
This is the code assembled from designing it in the browser. The existing page content is truncated for readability here.
For
src/pages/support/Support.jsx
:For
src/index.scss
:Animation
Optional extra! This issue could be closed without including any animation.
Using the
scrollToAnchor()
function that's currently insidecomponentDidMount()
, animate the scroll to the on-page heading. This would likely need:scrollToAnchor()
function somewhere accessible.tabIndex="-1"
to the linked headings (see Privacy heading for an example).onClick
handlers for each table of contents link to call the scroll animation function.