Unplanned
Last Updated: 13 May 2022 05:48 by saerlaith
saerlaith
Created on: 13 May 2022 05:48
Category: ColorPicker
Type: Feature Request
1
ColorPicker palette - read custom color names with screen readers

Hi,

I've noticed an issue using the ColorPicker with a screen reader. While it is technically usable with a screen reader, practically it is inaccessible and breaks WCAG SC 2.4.1 Name, Role, Value, as it just reads the numeric value of the color, which is extremely hard to parse.

I understand this would be difficult to implement on your default palettes, which have quite a number of colours, but I think at minimum, there should be an override of 'palette' in PaletteSettings.

Suggestion:

The palette property could accept an array of objects, like:

public myColors=[{value: '#44403f', colorName: 'dark red'}...];

public myColors=[{value: '#44403f', colorName: 'Default color'}...]

public myColors=['#44403f': 'Default color'}...]

When the array is passed make the aria-label assigned to colorName as well as the hex code as it is now.

I don't know how this will affect your localization packages, but in our system, this would be fine as we handle our localization separately.

The ColorPicker control will be inaccessible until this option is offered.

I think this should also be implemented for the basic palette. This is a general problem with the Palette and not just the color picker.

public myColors=[{value: '#44403f', text: 'Default color'}...]
0 comments