Skip to main content
Version: Current (v7.0.0-beta.3)

A theme that moves the description or help declares the order in presentation

Detect​

  • In your code, a FieldTemplate that draws the description below the control or the help above it.
  • A SelectWidget of your own that draws the field's description itself, with its selected option's description before it.

Change​

A control is described by the field's description, help and errors, and for a select by its selected option's description, in the order the plan lists them (#5367, #5720). The plan assumes the description comes before the control and the help after it.

  • A theme or form whose FieldTemplate draws the description below the select or the help above it declares the order in fieldTemplateOrder in its presentation.
  • One whose SelectWidget draws the field's description itself, with its selected option's description before it, declares selectedOptionDescription: 'beforeDescription'.
const presentation = {
+ fieldTemplateOrder: ['children', 'description', 'help'],
};

Verify​

A screen reader, or toHaveAccessibleDescription(), announces the description, help and option description in the order they appear on screen.

Also read: