Declined
Last Updated: 09 Nov 2023 17:20 by ADMIN
Nicholas
Created on: 02 Nov 2023 17:13
Category: UI for Blazor
Type: Feature Request
0
aria labels for TelerikForm

Is it possible to allow the adding of aria-label, aria-labelledby, and aria-describedby to the TelerikForm element?

I noticed that aria-labelledby and aria-describedby were added to input elements here: https://feedback.telerik.com/blazor/1531788-allow-setting-aria-labelledby-and-aria-describedby-attributes-to-the-telerik-inputs - so I assume they could be added to TelerikForm too?

Currently, there doesn't seem to be a way to add those attributes, whereas with the default EditForm we can, and so we're unable to leverage the TelerikForm if we want to provide better descriptive information to non-sighted users with a label and description of the form.

Ideally, we should be able to render any HTML element with global attributes: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes , which would include any of the aria-* tags.

I understand there's a desire to have a locked-down API for components and not allow arbitrary attributes, but I think certain attributes core to accessibility the users of the library should have some ability to manipulate.


1 comment
ADMIN
Hristian Stefanov
Posted on: 09 Nov 2023 17:20

Hi Nicholas,

Currently, labels associated with each input through IDs are rendered automatically by the Form component. You can inspect the rendered IDs and labels using your browser dev tools to confirm this. Because the screen reader can currently accurately read the form items, these internal relations take the place of the aria-label/aria-labelledby/aria-describedby attribute, eliminating the need for the form element to show such an attribute.

I'm marking this public item as "Declined" as a result. We may always modify the status of this item back if there is another reason why the aria-label is needed besides the present automatically produced labels.

I hope the information above is useful to you. Please let me know if there is anything in the situation that I missed.

Regards,
Hristian Stefanov
Progress Telerik

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