Build WCAG 2.2 AA-Compliant Gantt Charts, Grids, and Spreadsheets with DHTMLX

Digital accessibility is no longer an option, but a necessity in modern web development. Rising expectations and stricter legal enforcement (e.g., regulations like EAA and ADA) make it a foundational requirement for building user-friendly business apps. However, WebAIM’s 2026 accessibility analysis says that accessibility barriers, from insufficient color contrast to missing labels for interactive elements, remain a pressing issue. This makes conformance to accessibility standards like WCAG an important point at different stages of the development process, including when selecting UI tools for a web project.

At DHTMLX, we’ve recently made a significant step forward in terms of accessibility: DHTMLX Gantt, Spreadsheet, and Grid now come with features required to achieve WCAG 2.2 Level AA compliance. The progress in accessibility of these JavaScript UI components is documented in publicly available Accessibility Conformance Reports (VPAT 2.5). Let’s explore the details of the accessibility features embedded in these three DHTMLX products and their impact on user experience in web apps.

Table of contents:

Understanding WCAG 2.2 Level AA and Its Challenges for Dev Teams

The Web Content Accessibility Guidelines (WCAG) provide the development community with a set of globally acknowledged practices to ensure web content accessibility for users with disabilities.

These guidelines are built around four fundamental web accessibility principles for content and UI elements, which must be perceivable, operable, understandable, and robust (also known as POUR). WCAG also defines three conformance levels (A, AA, and AAA) to classify the level of accessibility achieved. Level AA is widely accepted as the standard target for organizations aiming to tackle diverse accessibility barriers.

WCAG 2.2 builds on v2.1, extending it with nine new success criteria and excluding the obsolete one (4.1.1 Parsing). These new criteria refer to keyboard focus visibility, minimum target sizes, alternatives to drag-based interactions, and other aspects of accessible interactions.

What do WCAG requirements mean for developers? Interactive parts of the app’s interface must support keyboard navigation, provide meaningful information to screen readers, display clear focus indicators, and behave consistently. Achieving all these goals can be especially demanding in business applications that require advanced functionalities with complex structures, rapid state changes, and intricate interaction patterns.

How can teams handle these accessibility challenges without investing much time and effort? One proven way is to rely on UI components that meet the WCAG 2.2 Level AA standard, like DHTMLX Gantt, Grid, and Spreadsheet.

Putting WCAG 2.2 Level AA into Practice with DHTMLX Components

Meeting WCAG 2.2 Level AA requirements across different UI components means accounting for different ways users interact with them. DHTMLX Gantt, Grid, and Spreadsheet each have their own interface structure and functional capabilities. Therefore, our team had to come up with component-specific approaches to keyboard navigation, WAI-ARIA semantics, assistive technologies, and visual accessibility. The following sections explore how these efforts translated into accessibility features in DHTMLX JavaScript UI components.

Making Complex Interfaces Keyboard Accessible

Keyboard accessibility is a fundamental requirement under WCAG’s “Operable” principle. This means users must be able to access all interactive functionality using keyboard controls alone. Furthermore, the focus indicator must remain under users’ control, allowing them to enter and exit interactive UI parts using the keyboard.

Here is how keyboard navigation works across the considered DHTMLX components:

  • DHTMLX Gantt

The Tab key allows switching between Gantt chart sections in the following sequence: task grid, custom layout cells, resource grid, resource timeline, next element on the page, while navigation within the active view is controlled via the arrow keys, Home, and End.

DHTMLX JavaScript Gantt chart also offers keyboard alternatives to dragging. Task dates and duration can be edited in the lightbox or directly in the grid, and moving, resizing, and changing the progress of a task can be assigned to custom keyboard shortcuts via addShortcut(). Dependency links are managed from the keyboard as well (see below).

keyboard navigationCheck the sample >

After enabling inline editing and adding a predecessor column (a successor column is optional), users can create or modify dependency links by entering the related task’s code right in the cell. This clearly shows how DHTMLX Gantt addresses the new success criterion focused on replacing drag-and-drop with keyboard operations (WCAG 2.5.7).

Keyboard navigation in DHTMLX Gantt is a configurable option. It is enabled through the gantt.plugins method:

gantt.plugins({ keyboard_navigation: true });

Also, it is possible to change the navigation mode, allowing users to move between individual grid cells instead of navigating row by row:

gantt.config.keyboard_navigation_cells = true;

The list of keyboard commands and shortcuts supported in DHTMLX Gantt.

  • DHTMLX Grid

Enabled by default, keyboard navigation covers all sections of the JavaScript Grid component, including header, body, footer, and even columns outside the viewport. When keyboard navigation brings the focus to an out-of-view cell, the Grid automatically scrolls it into view. At the same time, it accounts for frozen columns and rows, so the focused cell is not obscured by the non-moving area.

keyboard navigation actoss the grid tableCheck the sample >

The keyboard can also be used to perform the main grid operations such as cell editing, data sorting, hierarchy toggling, and clipboard actions. Even if the selection module is off, users can still explore read-only grid tables using the keyboard.

The list of keyboard commands and shortcuts supported in DHTMLX Grid.

  • DHTMLX Spreadsheet

The JavaScript Spreadsheet component provides keyboard-based control for various parts of the spreadsheet UI right after it is added to a web page. Users can navigate through the spreadsheet table, select ranges, edit cell content, and execute related commands. Keyboard navigation also extends to the toolbar, sheet tabs, drop-down menus, pop-up windows, and dialog elements.

Moreover, there are keyboard alternatives for certain operations typically performed with a mouse. For instance, it is possible to change the column width by moving the focus to any cell in the required column and pressing Shift+F10 to call the context menu where the corresponding operation can be performed via the keyboard.

keyboard navigation across the spreadsheet tableCheck the sample >

The list of keyboard commands and shortcuts supported in DHTMLX Spreadsheet.

All three DHTMLX components allow users to move keyboard focus into and out of their interactive areas without encountering keyboard traps.

Exposing UI Semantics to Assistive Technologies

When it comes to making web content accessible and understandable to assistive technologies like screen readers, it is essential to take the right approach to using the WAI-ARIA specification. As accessibility experts often remind us, no ARIA is better than bad ARIA. When used properly, WAI-ARIA attributes help clearly describe interface elements, their relationships, and their current states, making this information available to screen readers. WAI-ARIA is particularly important for complex interfaces, where structural and behavioral peculiarities cannot always be adequately conveyed via standard HTML semantics.

While working on improvements for WAI-ARIA support in Gantt, Grid, and Spreadsheet, the DHTMLX team focuses on providing meaningful semantic information that accurately describes the structure and interaction states of each component, helping address WCAG Success Criterion 4.1.2 (Name, Role, Value).

  • DHTMLX Gantt

The Gantt component communicates the hierarchical structure of project tasks to screen readers, including their nesting levels and relationships. ARIA attributes provide additional semantic information that describes expanded and collapsed branch states, selected rows, and the position of each task within the hierarchy.

Screen readers can also announce task summaries for each row, including task type, name, start and end dates, and progress. Taskbars are represented with their own descriptive labels. Existing labels and descriptions provided by Gantt to screen readers are customizable via the public gantt.ext.accessibility API. It allows modifying the info announced when users navigate the Gantt UI. For instance, a task row description can be customized as follows:

// Describe a task row for a medical schedule
gantt.ext.accessibility.labels.taskRow = (task) =>
   `Appointment: ${task.text}, ${task.duration} days, ${Math.round(task.progress * 100)}% complete`;

The lightbox editor is exposed as a modal dialog, allowing screen readers to recognize it as a separate interface for editing tasks. In the resource panel, workload data visualizations are supplemented with text descriptions, so users don’t have to rely solely on column heights or color indicators.

  • DHTMLX Grid

When working with DHTMLX-built grid tables, screen reader users can easily identify their position in the table thanks to announcements of row and column numbers, even with large or virtualized datasets.

With the context provided by ARIA attributes, screen readers also inform users about row or cell selection, whether the cell content is editable or not, and how data is sorted. In tree mode, they convey the record hierarchy and the state of individual branches (expanded/collapsed). Screen readers distinguish the grid’s header and footer as separate groups, while editors and header/footer filters have accessible names derived from their column headers.

  • DHTMLX Spreadsheet

Support for browser assistive technologies in DHTMLX Spreadsheet implies that the whole worksheet structure is automatically exposed to screen readers. The toolbar, sheet tabs, formula bar, and other key interface controls have accessible names, which help screen readers identify their purpose.

When a user selects a spreadsheet cell, the screen reader announces its address, current values, and additional details, e.g., if this cell is locked. Other useful information that can be communicated to users includes formula errors, invalid values, and editing restrictions. Spreadsheet hides decorative icons from assistive technologies to prevent unnecessary announcements. In read-only mode, navigation and common interactions with the worksheet are still available (select, copy, and search), except for edits, which are refused and announced.

In addition to exposing UI elements and their states using WAI-ARIA attributes, all three DHTMLX components use ARIA live regions to announce specific dynamic changes or operation results. These built-in announcements bring users up to date on what just happened in the UI without moving focus to the updated content.

For actions that are not covered by built-in announcements, DHTMLX Gantt, Grid, and Spreadsheet also provide a public announce() method for sending custom messages to screen readers. Here are some examples of such messages:

// DHTMLX Gantt
gantt.ext.accessibility.announce("Task moved to 21 Jul - 25 Jul");
gantt.ext.accessibility.announce("Saving failed", { assertive: true });

// DHTMLX Grid
grid.announce("5 rows imported");

// DHTMLX Spreadsheet
spreadsheet.announce("The report is saved");

As shown in the Gantt code sample, it can use assertive announcements for messages requiring the user’s immediate attention. Grid and Spreadsheet stick to polite announcements that don’t start until the screen reader finishes its current speech.

Moreover, built-in text used by screen readers, including labels and announcements, can be localized via each component’s localization settings to match the application’s language.

To verify compatibility with assistive technologies, we tested all three DHTMLX components with popular screen readers, including NVDA, JAWS, and VoiceOver.

Visual Accessibility Features Across DHTMLX Components

Under WCAG’s Perceivable principle, visually accessible interfaces ensure that users can perceive page content and distinguish critical details. For UI components, it involves providing sufficient color contrast, using color-independent cues, adapting to different zoom levels and viewport sizes, keeping keyboard focus visible, and accommodating changed text spacing.

Terrace theme with increase contrast and colorblind_friendly options
The default Terrace theme with enabled increase_contrast and colorblind_friendly options
Check the sample >

DHTMLX Gantt, Grid, and Spreadsheet address these requirements with a combination of predefined themes, visual indicators, and layout adjustments. The table below summarizes their capabilities in visual accessibility.

Visual accessibility aspects DHTMLX Gantt DHTMLX Grid DHTMLX Spreadsheet
High-contrast themes Two dedicated high-contrast themes: Contrast Black and Contrast White. The built-in Dark theme also meets AA contrast out of the box, while the increase_contrast option raises the default Terrace theme to comply with WCAG AA The contrast-light and contrast-dark themes meet the WCAG AA contrast threshold. Both are color-blind friendly and increase the base font size to 16 px. The contrast-light and contrast-dark themes satisfy WCAG AA contrast requirements for text. Colors marking cell references of a formula in Light and Contrast-Light themes have a contrast ratio of at least 4.5:1.
Color-independent cues The colorblind_friendly option adds non-color indicators to the Gantt interface: a line at the progress boundary, a hatch on project bars, an outline/shadow on critical tasks. Combines visual and semantic cues: sorting direction is clarified by an arrow glyph and aria-sort, selection is distinguished with highlighting and aria-selected, editability is conveyed through aria-readonly, and hierarchies with aria-level and aria-expanded. Active cells and selected ranges have both borders and background fills. Invalid values have visual markers and hidden descriptions. Formatting buttons use aria-pressed to indicate their active state. Accessible names for color buttons explicitly state the color.
Visible keyboard focus A persistent 2px focus indicator highlights the active row, cell, or taskbar. It remains visible in Windows High Contrast mode. Focus indicators depend on the selection configuration. With selection: “cell” or “complex”, and with blockSelection enabled, the active cell is enclosed by a solid 2px border. For row selection and when the selection module is disabled, active cells are marked with a dashed focus outline. Header/footer cells use 2 px focus rings, while filter inputs and cell editors are marked with inset rings. Focus indicator is available in every theme. Any active cell has a solid border in the theme’s primary color. The keyboard focus renders as a solid outline on cells, editors, and controls, and as a dashed outline on items within menus, dropdowns, and context menus.
Zoom and reflow Key Gantt areas (grid and timeline) remain operable at up to 400% page zoom. The grid interface stays fully functional at up to 400% zoom, with both horizontal and vertical scrolling available. Spreadsheet content and features remain operable at 200% and 400% zoom. Cells scroll horizontally and vertically, while surrounding controls (toolbar, menu bar, and sheet tabs) fit within 320 CSS px.
Text-spacing adjustments Supports increased text spacing without clipping or overlapping text in the grid panel and taskbars. Supports increased text spacing without clipping or overlapping text in cells, column headers, and footer summaries. Supports increased text spacing without cutting off control labels. The sheet tab bar scrolls when the tabs grow.

Take a look at contrast light and contrast dark themes available in DHTMLX Spreadsheet.

high contrast themesCheck the sample >

That’s a general picture of accessibility features available in DHTMLX Gantt, Grid, and Spreadsheet. For a more detailed evaluation of their WCAG 2.2 Level AA (as well as Section 508 and EN 301 549) conformance, the DHTMLX team provides Accessibility Conformance Reports. Based on the VPAT® 2.5 INT format, these reports provide the complete list of relevant accessibility criteria and describe how each component addresses them. Such reports often come in handy when evaluating tools for public-sector or enterprise projects.

DHTMLX components provide accessibility features that cover only their own interfaces, but what about the rest of the page? It remains the developer’s responsibility to ensure that the host page is accessible as a whole, including the page structure and any custom content.

Overview of Available Accessibility Features

The reports provide an in-depth look at how DHTMLX components meet criteria of popular accessibility standards. For a quick reference, the table below summarizes the main accessibility features of three DHTMLX components discussed in this article.

Accessibility Feature DHTMLX Gantt DHTMLX Grid DHTMLX Spreadsheet
Keyboard navigation
WAI-ARIA attributes
Screen reader support
High-contrast themes
Color-independent visual cues
Visible keyboard focus
Zoom and reflow
Text-spacing adjustments

The following resources provide more detailed task-oriented overviews of accessibility features, their configuration, and accessibility considerations when embedding the components into a host app:

Setting Up Accessible Gantt, Grid, and Spreadsheet

Numerous accessibility features built into DHTMLX Gantt, Grid, and Spreadsheet benefit end-users while also simplifying the work of development teams. Preparing an accessible deployment requires a little configuration effort.

In DHTMLX Grid, for instance, much of the essential functionality (WAI-ARIA and keyboard navigation) is available by default, so all that remains is to select an appropriate contrast theme:

// 1. WAI-ARIA output is always on, and keyboard navigation is enabled by default - no action needed
const grid = new dhx.Grid("grid_container", {
   columns: [/* ... */],
   data: dataset,
   keyNavigation: true // true - by default
});

// 2. Select an AA-conformant theme
dhx.setTheme("contrast-light"); // or "contrast-dark"

DHTMLX Spreadsheet follows a similar configuration approach:

const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
   // the keyboard navigation and the WAI-ARIA output need no configuration
});
spreadsheet.parse(data);

dhx.setTheme("contrast-light"); // or "contrast-dark"

Notice that DHTMLX Grid and Spreadsheet use the same dhx.setTheme() method. When both components are incorporated into the same web page, it is enough to call the method once to apply the needed theme for both components.

The DHTMLX Gantt configuration offers additional flexibility in adjusting visual accessibility through settings for contrast enhancement and non-color visual cues. Here is the recommended accessibility setup:

// 1. ARIA output is enabled by default - no action needed.
//    (You can be explicit: gantt.config.accessibility = { aria: true };)

// 2. Enable keyboard navigation
gantt.plugins({ keyboard_navigation: true });

gantt.config.accessibility = {
   aria: true,
   increase_contrast: true,     // AA contrast for the default light skin
   colorblind_friendly: true    // non-color cues (patterns, outlines)
};

gantt.init("gantt_here");

The DHTMLX team continuously validates the accessibility of our JavaScript UI components using both automated and manual approaches. Automated tests are performed using the axe-core accessibility engine. Manual procedures include reviews of markup and WAI-ARIA attributes, keyboard-only walkthroughs of components’ UIs, and testing screen reader output with NVDA, JAWS, and VoiceOver. Also, we manually run visual accessibility checks, including tests with different zoom levels (200% and 400%), text-spacing overrides, and color vision deficiency simulations.

Final Words

DHTMLX Gantt, Grid, and Spreadsheet components offer comprehensive built-in accessibility support, helping developers meet WCAG 2.2 Level AA requirements, which is critical for building inclusive applications. When incorporating these DHTMLX components into real-world projects, you can rely on built-in support for key accessibility features like keyboard navigation, WAI-ARIA attributes, screen reader support, contrast themes, and color-independent cues.

The best way to properly evaluate the accessibility of complex JavaScript UI components is to do it yourself. Download free 30-day trial versions our JavaScript components to test their accessibility features and see if they meet the needs of your application:

Still, remember that accessible UI components are only half of the battle, as the final result also depends on the accessibility of the host page. And since web applications rarely remain unchanged, accessibility requires constant monitoring. Regular testing helps detect emerging accessibility issues as the interface and functionality evolve.

Cyber
Monday

From 30% to 40% discounts. Nov 25 - Dec 6, 2026.