UNPKG

@progress/wct-a11y-spec

Version:

Contains accessibility and keyboard navigation specification of Telerik and Kendo web components.

16 lines (9 loc) 806 B
The dialog component should implement tab key trap to allow navigation in the dialog. Only the `x` button in the dialog element is included in the tab sequence. The dialog itself is not a focusable element. By default, on open the focus goes to the first focusable element in the content, or the primary action button if there is no focusable element in the content. ## Keyboard Shortcuts ### Button element | Shortcut | Behavior | | -------- | -------- | | `Tab` | Focus is moved between the elements in the dialog and is trapped into the component. | | `Escape` | Closes the dialog. When the dialog is modal, the focus should be returned to the element that triggered the open. | ## Resources [ARIA Authoring Practices: Modal Dialog Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)