I am currently using the ANDI accessibility tool and have encountered an accessibility issue with the tooltip icons across my application.
The tool reports an "Aria-Hidden Alert" stating: "Element is focusable but has or is contained by [aria-hidden = true]." The tool also reports as "Keyboard Access Alerts" which states" "Focusable element is not in keyboard tab order; should it be tabbable"?
The HTML for these elements shows aria-hidden = true and focusable = false. I believe the focusable attribute should be set to true.
I have attempted to resolve this using JavaScript to directly removing aria-hidden = true and changing focusable to true. However, there is no built-in configuration in Kendo UI for ASP.NET MVC to customize these accessibility attributes for tooltip icons therefore it didn't work.
Can you make the icons customizable?
I am including a screenshot of the code.
Hello Trena,
Thank you for describing the accessibility issues related to tooltip icons and for your attempt to resolve them programmatically.
Currently, Kendo UI for jQuery (used in Kendo UI for ASP.NET MVC) does not provide built-in configuration options to directly customize accessibility attributes, such as aria-hidden or focusable for tooltip icons. The rendering and attributes of these icons are managed internally by the component, and there is no exposed API to adjust them through component configuration.
Workaround Limitations
Using JavaScript or jQuery to modify these attributes after component initialization is the only available workaround. However, as you noticed, this approach may not be reliable because the component might re-render its DOM, which can revert your changes.
Most components have a dataBound event exposed, which fires when the component is bound to data from its data source. This is a good place to modify the attributes after component initialization.
Alternative Approaches
Regards,
Nikolay
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.