label association for color picker

0 Answers 90 Views
ColorPicker
ashutosh
Top achievements
Rank 1
Iron
Veteran
ashutosh asked on 27 Sep 2021, 09:37 AM

Hi Team,

 

how can I connect a label to color-picker using "for" attribute? currently even though its linked, screen reader(accessibility) does not read the label for color-picker.

appreciate any help.

Veselin Tsvetanov
Telerik team
commented on 30 Sep 2021, 08:37 AM

Hi Ashutosh,

Here is a demo example demonstrating how a <label> element with for attribute could be used with the Kendo ColorPicker. As per the label announced by the screen readers, that would be taken from the aria-label attribute of the widget k-colorpicker <span> element. If you need to alter that value, you should use the ARIATemplate configuration option of the ColorPicker:

https://dojo.telerik.com/IrEpegUf/2

No answers yet. Maybe you can help?

Tags
ColorPicker
Asked by
ashutosh
Top achievements
Rank 1
Iron
Veteran
Share this question
or