0.14.0 • Published 4 years ago

@guardian/src-utilities v0.14.0

Weekly downloads
51
License
-
Repository
-
Last release
4 years ago

Utilities

Install

$ yarn add @guardian/src-utilities

Focus manager

Providing a clear focus state (the blue halo effect around active elements) is essential to support keyboard navigation. It is less important, and arguably distracting, for mouse users.

Source provides a utility that manages the appearance of focus styles. When enabled, focus styles will be hidden while the user interacts using the mouse. They will appear when the tab key is pressed to begin keyboard navigation.

You must explictly enable this feature in your app (and you probably want to):

import { FocusStyleManager } from "@guardian/src-utilities"

FocusStyleManager.onlyShowFocusOnTabs()
0.14.0

4 years ago

0.2.0

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago