ColorPalette

ColorPalettes provide users with a selection of predefined colors for various design or styling purposes, making color selection easier.

Accessibility Support

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

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

WAI-ARIA

This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.

SelectorAttributeUsage
.k-colorpaletterole=gridThe focusable wrapper of the component should announce its role as a grid.
aria-label or aria-labelledbyThe component needs an accessible name to be assigned to it. Must also include the currently selected value in the component.
aria-activedescendant=.k-colorpalette-tile.k-focus idPoints to the focused cell in the table. The focused cell is changed via keyboard navigation.
tabindex=0The element must be focusable.
.k-colorpalette.k-disabledaria-disabled=trueAttribute is rendered only when the ColorPalette is disabled.
.k-colorpalette-tablerole=none/presentationNegates the default role of the element, as it is wrapped within a role="grid" element.
.k-colorpalette-table>tbody>trrole=rowRequired as the semantic role of its parent <table> has been removed.
.k-colorpalette-tilerole=gridcellRequired as the semantic role of its parent <table> has been removed.
aria-label or titleThe text representation of the color value for the current cell.
.k-colorpalette-tile.k-selectedaria-selected=truePresent on the currently selected cell in the component.

Keyboard Shortcuts

ShortcutBehavior
Down ArrowFocuses the next cell below.
Up ArrowFocuses the next cell above.
Right ArrowFocuses the next cell on the right.
Left ArrowFocuses the next cell on the left.
EnterSelects the color from the currently focused cell.

Testing

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

Screen Readers

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

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS

Resources