React CardView - Accessibility

Accessibility Features Overview

NOTE
The overall accessibility level of your application depends on the CardView features you use.
Accessibility RequirementSupport Level
Right-to-Left Support
Keyboard Navigation Support
Screen Reader Support
Contrast Color Theme
Mobile Device Support
Lighthouse Accessibility Validation
Axe Accessibility Validation
WAVE Accessibility Validation
Section 508 Support
WCAG 2.x Support
  • - All component features meet the requirement
  • - Some component features may not meet the requirement
  • - Accessibility requirement is not supported

Accessibility Standards Compliance

The CardView component meets a variety of Section 508 and WCAG 2.x compliance standards. Known exceptions:

Section 508 criteriaWCAG 2.x criteriaException description
501 (Web)(Software)
504.2 (Authoring Tool)
602.3 (Support Docs)
1.4.3 Contrast (Minimum) (Level AA)
1.4.11 Non-text Contrast (Level AA 2.1 and 2.2)
CardView does not support Windows High Contrast themes.
11.5.2.12 Execution of available actions2.1.1 Keyboard (Level A)Keyboard navigation is not supported for ColumnChooser items in 'drag' mode.
-2.5.7 Dragging Movements (Level AA 2.2 only)ColumnChooser in 'drag' mode.

The component also complies with the European Accessibility Act (EAA) and Americans with Disabilities Act (ADA) directives.

Keyboard Navigation

CardView offers different keyboard controls depending on the focused component area and the action users want to perform.

Toolbar

KeyAction
Tab
Shift + Tab
Moves focus between toolbar controls and other CardView areas.
Enter
Space
Triggers focused toolbar controls.

Header Panel

KeyAction
Tab
Shift + Tab
Moves focus between the header panel and other CardView areas.
Left Arrow / Right ArrowMoves focus between header panel items.
Moves focus between toolbar items.
Home
End
Moves focus to the first/last item in the toolbar.
Shift + Right Arrow
Shift + Left Arrow
Reorders the focused header item if allowColumnReordering is set to true.

To navigate between toolbar items using the Tab key, disable allowKeyboardNavigation in CardView Toolbar instances. Call dxToolbar.defaultOptions() as follows:

App.tsx
  • import dxToolbar from "devextreme/ui/toolbar";
  • import { type ToolbarTypes } from "devextreme-react/toolbar";
  •  
  • dxToolbar.defaultOptions({
  • options: {
  • onInitialized(e: ToolbarTypes.InitializedEvent) {
  • if (e.element?.closest('.dx-cardview')) {
  • e.component?.option('allowKeyboardNavigation', false);
  • }
  • }
  • }
  • });

Replace .dx-cardview with a component ID or class to modify keyboard navigation behavior in a specific component only.

IMPORTANT
If you disable allowKeyboardNavigation, the DevExtreme Toolbar no longer follows the W3C ARIA APG Toolbar Pattern. Your application will be less accessible to users who rely on keyboard navigation.
Sorting and Filtering
KeyAction
EnterEnables/cycles between focused header sorting options (ascending/descending).
Shift + Enter
Shift + Click
Enables/cycles between focused header sorting without clearing previous sorting options if sorting.mode is set to "multiple".
Ctrl + Enter
Ctrl + Click
Disables focused header sorting. Does not clear previous sorting options if sorting.mode is set to "multiple".
Alt + Down ArrowTriggers the focused header filter popup.

Content View

KeyAction
Arrow KeysMoves focus between cards.
PageUp
PageDown
Moves focus to the previous/next page if paging.enabled is set to true.
Home
End
Moves focus to the first/last card of the focused row.
Ctrl + Home
Ctrl + End
Moves focus to the first card of the first row/last card of the last row.
Selection and Searching
KeyAction
SpaceToggles selection of the focused card and clears previous selection if selection.mode is set to "single".
Ctrl + ClickToggles selection of the focused card without clearing previous selection if selection.mode is set to "multiple" and selection.showCheckBoxesMode is set to "onClick".
Shift + Space
Shift + Click
Toggles selection of all cards between the last selected card and the focused card if selection.mode is set to "multiple".
Ctrl + ASelects all cards if selection.mode is set to "multiple".
Ctrl + FMoves focus to the search panel if searchPanel.visible is enabled.
Card Interaction
KeyAction
Shift + EnterEdits the focused card.
DeleteDeletes the focused card.
EnterWhen focused on a card, moves focus to the first focusable card item.
When focused on a card item, triggers the item.
Tab
Shift + Tab
Moves focus between card items.
EscWhen focused on a card item, moves focus to the parent card.

Filter Panel

KeyAction
Tab
Shift + Tab
Moves focus between filter panel items and other CardView areas.
Enter
Space
Triggers focused filter panel item.

Pager

KeyAction
Tab
Shift + Tab
Moves focus between pager items and other CardView areas.
Enter
Space
Triggers focused pager item.
Up Arrow / Down ArrowWhen focused on TBA, switches the component to the next/previous page.
Alt + Down ArrowWhen focused on TBA, opens the dropdown.

Popups

KeyAction
Tab
Shift + Tab
Moves focus between popup items.
Enter
Space
Triggers focused controls.
EscCloses the active popup.

Use the registerKeyHandler(key, handler) method to implement a custom handler for a key.

App.tsx
  • import React, { useRef, useEffect } from 'react';
  • import { CardView, type CardViewRef } from 'devextreme-react/card-view';
  •  
  • function App() {
  • const cardViewRef = useRef<CardViewRef>(null);
  •  
  • useEffect(() => {
  • const cardView = cardViewRef.current.instance();
  • cardView.registerKeyHandler('backspace', function(e) {
  • // The argument "e" contains information about the event
  • });
  • cardView.registerKeyHandler('space', function(e) {
  • // ...
  • });
  • }, []);
  •  
  • return (
  • <CardView ref={cardViewRef} />
  • );
  • }

Screen Reader Support

The CardView component supports screen readers and complies to WAI-ARIA standards.