Intro

The invisible text control provides a simple hidden text that can be used by assistive technologies such as screen readers to provide contextual information.

When to Use

Use invisible text if:

Do not use invisible text if:

Examples

Here are some examples of use cases that require invisible texts:

  • A title that sighted users don’t need (for example, a title for a form or table).
  • A form row with more than one form element: Use the concatenated label for sighted users and single invisible texts for users of assistive technologies.

A group of radio buttons without a visible label

A group of radio buttons without a visible label

  • A visual element without any kind of label, such as a busy indicator animation.

Animation for loading

Animation for loading

  • Information about uncommon states or properties, such as semantic states.

Buttons use the invisible text control to announce their type

Buttons use the invisible text control to announce their type

Properties

The properties busy, busyIndicatorDelay, and visible have no effect. Do not use them.

Top Tips

hint

It is not sufficient to just add the invisible text control. You must also assign it to the corresponding control. Unlike labels, invisible texts are not assigned automatically in forms.

To assign the invisible text to a control, add the ID of the invisible text to the ariaLabelledBy association of the corresponding control.

Elements and Controls

Implementation

Visual Design

  • No links.