Hi,
We need advice on how to add "id" and "for" reference attributes to custom angular components and associated kendo labels.
We use custom controls, that implement the ControlValueAccessor interface. We would like to use them with associated kendo-labels.
There is a good documentation here:
https://www.telerik.com/kendo-angular-ui/components/labels/label/association#other-angular-components
However it is not sufficient for our case. We need to keep WCAG conformity (level AA), means, the Html label element and the Html input element should be connected by attributes for and id, e.g.:
<label for="someId">Input here</label>
<input id="someId">
With standard kendo label and kendo input controls, these reference attributes for the inner Html elements are added by some kendo magic.
This however does not work if the kendo input control is wrapped in a component.
The accessability testing tools (e.g. WAVE, AInspector) mark this as an error.
Can someone propose a solution, on how to get the proper attributes onto the Html elements, or does anyone know a good and usable workaround (final ressort would be to set aria-label to the inner input element ...).
I attach a codesandbox link which extends the kendo documentation mentioned above, and a screenshot with WAVE test result for the code snippet.
Thank you in advance.
https://codesandbox.io/p/sandbox/exciting-water-s8hp6k