Course lesson

Appropriately Set the Focus on Each Page Load of a Web Application

Keyboard/screen reader navigation relies on focus proceeding in a logical and linear order and not getting lost such that the user does not know where they are or how to get back to the desired point in a web page.

Duration
10 min
Access
Pro
Transcript
Available

Keyboard/screen reader navigation relies on focus proceeding in a logical and linear order and not getting lost such that the user does not know where they are or how to get back to the desired point in a web page.

References

  • https://www.w3.org/TR/wai-aria-1.1/#managingfocus
  • https://developers.google.com/web/fundamentals/accessibility/focus/
  • https://reactjs.org/docs/accessibility.html#programmatically-managing-focus
  • https://reactjs.org/docs/accessibility.html#programmatically-managing-focus
  • https://reactjs.org/docs/refs-and-the-dom.html
  • https://reactjs.org/docs/hooks-reference.html#useref
    • https://medium.com/@teh_builder/ref-objects-inside-useeffect-hooks-eb7c15198780
  • https://www.gatsbyjs.org/blog/2019-07-11-user-testing-accessible-client-routing/