Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

VisuallyHidden

Text that does not show on screen, but screen readers read. It completes what the position on the page already tells sighted people.

On this page

Playground

See as
Background
HTML
<label class="feitio-stack" data-gap="2" style="inline-size: min(100%, 20rem)"><span class="feitio-visually-hidden">Filter</span><input class="feitio-input" type="search" placeholder="…"></label>

When to use

When not to use

Examples

Weekly backup

The full name of an action

Sighted people understand from the row; the screen reader hears "Edit weekly backup".

Show code
HTML
<button type="button" class="feitio-button" data-size="small">
  Editar<span class="feitio-visually-hidden"> backup semanal</span>
</button>

Do and don’t

Do

"Edit" with the row’s name hidden.

Context that only the screen reader was missing.

Don’t

"Save before leaving" hidden, only for screen readers.

A notice only screen readers get: sighted people needed it too.

Attributes

AttributeValuesWhat for
class="feitio-visually-hidden"requiredDisappears from the screen and stays for screen readers.
Top