Skip to content

Wizard

What component has

Keyboard support

Keyboard support
KeyFunction
Tab, Moves focus to the next (or previous) focusable element.
Up Arrow, If a Stepper is focused, selects the previous (or next) Stepper.
Enter, SpaceIf a Stepper is selected, activates it and switches to the corresponding step.
EscCloses the wizard.

See detailed information about the keyboard support for the all form elements in the Keyboard control guide.

Roles and attributes

The following list describes roles and attributes that component already has.

Roles and attributes
ComponentAttributeUsage
Wizardaria-labelledby="IDREF"Defines an accessible name for the dialog. Automatically populated from the title in the Wizard.Sidebar.
role="dialog", aria-modal="true"Identifies the element as a modal dialog. Inherited from Modal.
Modal.Closearia-label="Close"Defines an accessible name for the Close button. Inherited from Modal.
role="tablist"Identifies the element as a set of tabs.
aria-orientation="vertical"Indicates that the orientation of the tablist is vertical, helping to use the appropriate keys for navigation.
Wizard.Stepperrole="tab"Identifies the element as a tab.
aria-selected="true/false"Indicates whether the tab is active.
aria-controls="IDREF"Refers to the content area that corresponds to this tab.
Wizard.Contentrole="tabpanel"Identifies the element as a content area associated with a tab.
aria-labelledby="IDREF"Defines an accessible name for the content area by referring to the corresponding tab.
Wizard.StepBackaria-label="Back to {Step}"Defines an accessible name for the button that goes to the previous step.
Wizard.StepNextaria-label="Go to {Step}"Defines an accessible name for the button that goes to the next step.

Considerations for developers

Ensure the proper heading hierarchy in the Wizard. The Wizard starts with an h2 heading by default, so each step should start with an h3 heading, and so on. Refer to the example for details.

Resources

Other recommendations

See more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.