Accessibility in EJ2 JavaScript Button group control
10 May 20235 minutes to read
The web accessibility makes web content and web applications more accessible for people with disabilities. It especially helps in dynamic content change and development of advanced user interface controls with AJAX, HTML, JavaScript, and related technologies.
ButtonGroup provides built-in compliance with WAI-ARIA specifications. It helps the people with disabilities by providing information about the widget for assistive technology in the screen readers. ButtonGroup component contains the group role.
Properties
Functionality
role
Indicates the group for the container that holds two or more buttons.
Keyboard interaction
Normal behavior
Keyboard shortcuts
Actions
Tab
Focuses the next button in the ButtonGroup.
Enter/Space
Activates the focused button in the ButtonGroup.
Checkbox type behavior
Keyboard shortcuts
Actions
Tab
Focuses the next button in the ButtonGroup.
Space
Activates the focused button in the ButtonGroup.
Radiobutton type behavior
Keyboard shortcuts
Actions
Tab
Focuses the active button in the ButtonGroup.
Arrow Keys
Activates next/previous button in the ButtonGroup.