jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

jquery-ui tab "Interactive controls must not be nested"

Open VishwaSangani opened this issue 2 years ago • 5 comments

issue link

The axe-core DevTools accessibility checker flags a "serious" problem with this code: "Interactive controls must not be nested", with the explanation "Interactive control elements must not have focusable descendants" and referencing guideline WCAG 4.1.2.

Even though I tried changing roles to 'none presentation' or totally removed the role but then it strats throwing issue for aria-selected and aria-expanded attributes as "Elements must used allowed aria attributes"

How I do change the tabs widget code to make it accessible?

VishwaSangani avatar Jun 23 '23 14:06 VishwaSangani

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

mgol avatar Jun 26 '23 22:06 mgol

I'm using jQuery UI 1.13.2 (latest version) right now and facing this issue. But seems like the issue is producible with older versions too.

VishwaSangani avatar Jun 28 '23 07:06 VishwaSangani

Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/.

mgol avatar Jun 28 '23 12:06 mgol