1.7.0 • Published 1 month ago

@umbraco-ui/uui-visually-hidden v1.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

uui-visually-hidden

npm

Umbraco style visually-hidden component.

The visually hidden utility makes content accessible to assistive devices without displaying it on the screen.

According to The A11Y Project:

There are real world situations where visually hiding content may be appropriate, while the content should remain available to assistive technologies, such as screen readers. For instance, hiding a search field's label as a common magnifying glass icon is used in its stead.

Since visually hidden content can receive focus when tabbing, the element will become visible when something inside receives focus. This behavior is intentional, as sighted keyboard user won’t be able to determine where the focus indicator is without it.

Installation

ES imports

npm i @umbraco-ui/uui-visually-hidden

Import the registration of <uui-visually-hidden> via:

import '@umbraco-ui/uui-visually-hidden';

When looking to leverage the UUIVisuallyHiddenElement base class as a type and/or for extension purposes, do so via:

import { UUIVisuallyHiddenElement } from '@umbraco-ui/uui-visually-hidden';

Usage

<uui-visually-hidden></uui-visually-hidden>
1.8.0-rc.0

1 month ago

1.7.0

3 months ago

1.7.0-rc.0

3 months ago

1.6.0

3 months ago

1.6.0-rc.4

4 months ago

1.6.0-rc.3

5 months ago

1.6.0-rc.2

5 months ago

1.6.0-rc.1

6 months ago

1.6.0-rc.0

6 months ago

1.5.0

7 months ago

1.5.0-rc.3

7 months ago

1.5.0-rc.2

7 months ago

1.5.0-rc.1

7 months ago