Overlay
Overlay
Overlay
reveals supplementary content when the user clicks a UI trigger element. It remains active and open until the user dismisses it. It can contain interactive and focusable elements, such as buttons and links.
Examples
How to use
Accessibility
- Users expose an overlay using a focusable UI element, such as a button. On button activation by either the Enter or Space keys, focus enters the overlay.
- Users can close an overlay by a close button click or press, or clicking outside of the floating element. Users can also close an overlay by pressing Enter or Space when focus is on the close button.
- The overlay's close button always receives focus before overlay content.
Key | Function |
---|---|
Tab |
|
Shift + Tab |
|
Enter / Space |
|
Escape |
|