Accessibility in ASP.NET MVC DropDownButton control
ARIA attributes
The web accessibility makes web content and web applications more accessible for people with disabilities. Mostly it helps in dynamic content change and development of advanced user interface controls with AJAX, HTML, JavaScript, and related technologies.
DropDownButton provides built-in compliance with WAI-ARIA specifications. WAI-ARIA support is achieved through the attributes like aria-expanded, aria-owns and aria-haspopup applied for action item in
DropDownButton. It helps by providing information about the widget for assistive
technology in the screen readers. DropDownButton component contains the menu role and menuItem role.
Properties
Functionality
menu
Specified for an DropDownButton element.
menuItem
Specified for an action items.
aria-haspopup
Indicates the availability and type of interactive dropdown popup element.
aria-expanded
Indicates whether the current state of the dropdown popup can be expanded or collapsed.
aria-owns
Identifies elements to define a visual, functional, or contextual parent or child relationship between DOM(Document Object Model) elements where the hierarchy cannot be used to represent the relationship.
Keyboard interaction
Keyboard shortcuts
Actions
Esc
Closes the popup.
Enter
Opens the popup, or activates the highlighted item and closes the popup.