Skip to content

SidePanel

What component has

Keyboard support

Keyboard support
KeyFunction
TabMoves focus to the next focusable element.
Shift + TabMoves focus to the previous focusable element.
EscCloses the panel.

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

Default attributes

Default attributes
ComponentAttributeUsage
SidePanelrole="dialog"Identifies the element as a dialog, indicating to assistive technology that its content is grouped and separated from the rest of the page content.
SidePanelaria-modal="true"Tells assistive technologies that the content underneath the current dialog is not available for interaction.
SidePanel.Closearia-label="Close"Sets the default accessible name for the Close button.

Considerations for developers and designers

  • It's required to set either the aria-label or the aria-labelledby attribute for the SidePanel component. If your SidePanel has a visible title, it's best to reference it in the aria-labelledby attribute.
  • Make sure to use correct heading tags and hierarchy for titles in SidePanel.

Resources

W3 modal dialog example has detailed information about the modal dialogs accessible behavior.

Other recommendations

See more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.