Hi,
I use the kend dropdownlist with a attached kendo-label. However the "for" reference of the label is marked as invalid (at least by "AInspector" and "WAVE" Accessibility testing tools).
Please see attached screen shots, where I tested against the first example from the kendo docs
( https://demos.telerik.com/kendo-angular-ui/demos/dropdowns/dropdownlist/basic_usage?theme=default-ocean-blue-a11y )
DOM inspection of the example shows, that the label properly references the dropdownlist, also the aria-labelledby reference is correct:
<kendo-label text="Find restaurants in your area" dir="ltr"><!---->
<label for="k-9997b5c1-2233-4273-ba25-6e344c093c3d" id="k-2a8d206c-3623-44ce-a03d-c8c097acc5a6">
Find restaurants in your area<!----></label>
<kendo-dropdownlist ...
aria-describedby="k-80ee2bb7-41d8-4c8b-9afc-08898b371395"
id="k-9997b5c1-2233-4273-ba25-6e344c093c3d" ... aria-labelledby="k-2a8d206c-3623-44ce-a03d-c8c097acc5a6">
<button ...>...</button>
...
The problem could be, that the label references the <kendo-dropdownlist> tag itself, not the included button or other included elements.
According to HTML documentation , only "labelable elements" can be referenced by the "for" reference of a label (e.g. button, input, see labelable elements ).
My question is, how to deal with it, and how to explain the warnings to our customers...
Thank you in advance!