|
Download wp-calypso/packages/accessible-focus/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/accessible-focus/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/accessible-focus/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/accessible-focus/README.md
572 Bytes
Accessible-focus
This module is run at client startup and listens for keyboard events to determine if the user is navigating the page by keyboard. Clicking the tab, arrows, or space keys is considered keyboard navigation.
When keyboard navigation is detected, the class accessible-focus is added to the document's html element. This class can be used to show a dotted outline effect around focused elements to assist the user in keyboard navigation.
The class is removed again upon detection of a click event, which indicates the user is navigating with the mouse.