Skip to content

NoticeBubble

What component has

Keyboard support

Keyboard support
KeyFunction
TabMoves focus to the next focusable element. After the last focusable element in the dialog, moves focus to the next focusable element outside of the dialog.
Moves focus to the previous focusable element. After the first focusable element in the dialog, moves focus to the previous focusable element outside of the dialog.
EscCloses the dialog when focus is within it.

Roles & attributes

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

Roles and attributes
Component or elementAttributeUsage
Bubble's parent divrole="region", aria-label="Notifications"Defines a landmark so that users can navigate to it and access elements inside.
aria-live="polite"Only with type="info". Instructs the screen reader to announce changes within the container whenever the user is idle.
Bubblerole="alert"Only with type="warning". Instructs the screen reader to announce the changes immediately, interrupting other processes.

Considerations for developers

Don't trap keyboard focus in the NoticeBubble. Users should be able to navigate in and out freely.

Other recommendations

Find more accessibility recommendations in the common Accessibility guide.

Released under the MIT License.

Released under the MIT License.