DEV Community

loading...

Discussion on: Enhance a11y using :focus-visible pseudo-class

Collapse
bhargavshah profile image
Bhargav Shah • Edited

Good to know this hack. In general it is considered a good practice to only focus on interactive items on a page. There are controls other than Tab key that AT and screen readers have to reach other parts of a webpage.

Source: "Items that should not receive keyboard focus" section of webaim.org/techniques/keyboard/