Is it possible to add 'aria-label' attribute to the ComboBox?

1 Answer 32 Views
ComboBox
Thomas
Top achievements
Rank 1
Iron
Thomas asked on 03 Jul 2024, 06:48 PM
For unit testing automation, it would be really convenient if we could set the aria-label (as opposed to the aria-described-by or the aria-labelled-by) attribute to the ComboBox component. I noticed that the ComboBoxProps doesn't have this option available. Is there a way to circumvent the props and manually add it?
Thomas
Top achievements
Rank 1
Iron
commented on 03 Jul 2024, 06:55 PM

Also, is there a specific reason ariaLabel isn't a member of the ComboBoxProps?

1 Answer, 1 is accepted

Sort by
1
Accepted
Vessy
Telerik team
answered on 04 Jul 2024, 10:06 AM

Hi, Thomas,

Indeed not all accessibility props are exposed in our components, but you can add custom attributes to the Grid (and all components in the KendoReact suite) by following the approach from this help article:

For example:

I hope the suggested approaches will be helpful for you.

Regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
ComboBox
Asked by
Thomas
Top achievements
Rank 1
Iron
Answers by
Vessy
Telerik team
Share this question
or