Accessibility Support
Out of the box, the Telerik and Kendo UI DropDownButton provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.
The DropDownButton is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation for its component
role, provides options for managing its focus and is tested against the most popular screen readers.
WAI-ARIA
This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.
Main Button Element
The following table summarizes the selectors and attributes supported by the main button
element of the DropDownButton:
Selector | Attribute | Usage |
---|---|---|
.k-menu-button | role=button or nodeName=button | Omitted if the <button> DOM element is used. |
aria-label | The attribute must be present when no text is initially visible in the button. | |
aria-expanded=true/false | Announces the state of the popup visibility. | |
aria-haspopup=menu | Indicates the presence of a menu popup. | |
aria-controls=.k-menu-group id | Points to the popup element. Builds a relationship between the button and the popup. | |
.k-menu-button.k-disabled | aria-disabled=true | Rendered only when the button is disabled and the disabled attribute cannot be used. Applicable to the <button> or <input type="button"> elements. |
Popup Menu Element
The following table summarizes the selectors and attributes supported by the popup menu
element of the DropDownButton:
Selector | Attribute | Usage |
---|---|---|
.k-menu-group | role=menu | Announces the menu role of the popup. |
aria-labelledby=.k-menu-button id | Points to the button element. | |
.k-menu-item | role=menuitem | Announces the menuitem role of the popup items. |
Managing the Focus
The DropDownButton is a single tab stop component.
Keyboard Shortcuts
This section lists the keyboard shortcuts supported by the DropDownButton composite elements.
Main Button Element
The following table summarizes the keyboard combinations and input behavior supported by the main DropDownButton button
element:
Shortcut | Behavior |
---|---|
Alt + Down Arrow | Opens the DropDownButton popup and moves the focus to its first menuitem element. |
Enter | Opens the DropDownButton popup and moves the focus to its first menuitem element. |
Space | Opens the DropDownButton popup and moves the focus to its first menuitem element. |
Popup Menu Element
The following table summarizes the keyboard combinations and input behavior supported by the popup menu
element of the DropDownButton:
Shortcut | Behavior |
---|---|
Alt + Up Arrow | Closes the popup and moves the focus back to the main button element. |
Esc | Closes the popup and moves the focus back to the main button element. |
Down Arrow | Moves the focus to the next menuitem element. If the focus is on the last menu item, moves the focus to the first menu item. |
Up Arrow | Moves the focus to the previous menuitem element. If the focus is on the first menu item, moves the focus to the last menu item. |
Home | Moves the focus to the first menuitem element. |
End | Moves the focus to the last menuitem element. |
Enter | Clicks (activates) the currently active menuitem element and closes the popup. |
Space | Clicks (activates) the currently active menuitem element and closes the popup. |
Testing
The DropDownButton has been extensively tested automatically with axe-core and manually with the most popular screen readers.
Screen Readers
The DropDownButton has been tested with the following screen readers and browsers combinations:
Environment | Tool |
---|---|
Firefox | NVDA |
Chrome | JAWS |
Microsoft Edge | JAWS |