Skip to content

Help Text

The small text below a field that explains what the system expects. If the text is an error message, use Error Text.

data-variantUsed for
(omitted)Muted. The default.
strongFull text colour, when the text has to be read before the field is filled in
successConfirmation that something went well
warningSomething the user should know, but that does not stop submission

Without aria-describedby the help text is not read out when the field gets focus.

Field generates the id and sets aria-describedby for you.

ClassWhat it is
.lt-help-textThe text. The colour comes from data-variant.

See Customising for how the layer works.

  • Without aria-describedby the text is invisible to screen readers. The wiring is the whole point.
  • Keep it short. It is read out right after the label every time the field gets focus.
  • Colour should not carry the meaning. A warning has to say in its words what the problem is.