Skip to main content

ContextMenu

The ContextMenu provides a list of options that appear on right-click, giving quick access to relevant and frequently used actions.

Accessibility Support

Out of the box, the Telerik and Kendo UI ContextMenu provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The ContextMenu 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 and provides options for managing its focus and is tested against the most popular screen readers.

ContextMenu

ARIA Attributes

AttributeDescription
role="menu"The context menu implements the menu role.
role="menuitem"Announces the Menu item role.
aria-haspopup="menu"Indicates a popup menu is associated with the item.
aria-expanded="true"|\"false"Indicates whether the submenu is expanded.
aria-disabled="true"Informs assistive technologies that a Menu item is disabled.
aria-hidden="true"Expand arrow elements are hidden from assistive technologies.
tabindex="0"The focused item has tabindex 0.
aria-controls="ul.k-menu-group id"Points to the ID of the submenu.
idEach nested menu has an id linked to parent aria-controls.

Keyboard Navigation

TriggerBehavior
Shift + F10When applied to a target, the command opens the ContextMenu.
ArrowUpFocuses the previous item.
ArrowDownFocuses the next item.
ArrowLeft(For root items) opens the item and focuses the last child.; (For child items) closes and focuses the parent.
ArrowRightIf the item has children, opens the item and focuses the first child. For child items without children, focuses and opens the next root item.
EscapeCloses the ContextMenu and returns the focus to the target.
HomeFocuses the first item.
EndFocuses the last item.
EnterSelects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL.
SpaceSelects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL.
Alphanumeric characterFocuses the next item with text starting with the character.

UX Behavior

FeatureDescription
Right-click triggerOpens when the user right-clicks (or long-presses on touch) the target element.
SubmenusMenu items can have submenus that open on hover.
DismissCloses when clicking outside the menu or pressing Escape.

Testing

The ContextMenu has been extensively tested automatically with axe-core and manually with the most popular screen readers.

Screen Readers

The ContextMenu has been tested with the following screen readers and browsers combinations:

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS

Resources

Feedback