Label

Labels describe the purpose of a form element in a UI

Use Cases

  • Users should be able to:
  • Navigate to and activate a text field with assistive technology
  • Input information into the text field
  • Receive and understand supporting text and error messages
  • Navigate to and select interactive icons

Interaction & Style

The containers for both filled and outlined text fields provide the same functionality. Changes to color and thickness of stroke help provide clear visual cues for interaction.

Keyboard Navigation

KeysActions
TabFocus lands on (non-disabled) input

Labeling Elements

If the UI text is correctly linked, assistive tech (such as a screenreader) will read the UI text followed by the component's role.

The accessibility label for a textfield is typically the same as the label for the textfield.