Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Latest commit

 

History

History
12 lines (6 loc) · 719 Bytes

27-manage-focus.md

File metadata and controls

12 lines (6 loc) · 719 Bytes

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

📹 Video

  • Focus refers to the control on the computer screen that receives input from the keyboard and from the clipboard when you paste (like input elements).

  • Generally focus is given only to interactive controls like buttons, tabs, dropdowns, header links or anything that the user might provide input to.

  • To make non-interactive elements interactive (focusable), you can add tabIndex={0} attribute to it.

  • A value of tabIndex={-1} will remove the element from the default navigation flow - be careful with this one!