A theme that moves the description or help declares the order in presentation
Detect
- In your code, a
FieldTemplatethat draws the description below the control or the help above it. - A
SelectWidgetof 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
FieldTemplatedraws the description below the select or the help above it declares the order infieldTemplateOrderin itspresentation. - One whose
SelectWidgetdraws the field's description itself, with its selected option's description before it, declaresselectedOptionDescription: '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: