Hi Team,
We are using the Kendo grid and getting below warnings for Aria role with accessibility check. the code is simply to display the data from DB and non editable & Sortable.
Please help to resolve the below 4 warnings for single Kendo grid.
Using the Kendo grid version 18.0.0
1.
Title: WCAG 1.3.1: Ensure elements with an ARIA role that require child roles contain them (thead)
Tags: Accessibility, WCAG 1.3.1, aria-required-children
Issue: Ensure elements with an ARIA role that require child roles contain them (aria-required-children - https://accessibilityinsights.io/info-examples/web/aria-required-children)
Target application: ***************
Element path: #k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5 > .k-grid-header[role="presentation"] > .k-grid-header-wrap[data-scrollable=""][role="presentation"] > .k-grid-header-table > thead
Snippet: <thead kendogridheader="" role="rowgroup" class="k-table-thead">
How to fix:
Fix any of the following:
Element has children which are not allowed: [role=columnheader]
Environment: Microsoft Edge version 136.0.0.0
Title: WCAG 1.3.1: Ensure elements with an ARIA role that require child roles contain them (#k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5)
Tags: Accessibility, WCAG 1.3.1, aria-required-children
Issue: Ensure elements with an ARIA role that require child roles contain them (aria-required-children - https://accessibilityinsights.io/info-examples/web/aria-required-children)
Target application: **********
Element path: #k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5
Snippet: <div role="grid" kendodragtargetcontainer="" kendodroptargetcontainer="" mode="manual" class="k-grid-aria-root" id="k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5" aria-label="Data table" aria-rowcount="2" aria-colcount="22">
How to fix:
Fix any of the following:
Element has children which are not allowed: [role=presentation], [role=columnheader], [role=gridcell]
Environment: Microsoft Edge version 136.0.0.0
Title: WCAG 2.1.1: Ensure elements that have scrollable content are accessible by keyboard (.k-grid-content.k-virtual-content)
Tags: Accessibility, WCAG 2.1.1, scrollable-region-focusable
Issue: Ensure elements that have scrollable content are accessible by keyboard (scrollable-region-focusable - https://accessibilityinsights.io/info-examples/web/scrollable-region-focusable)
Target application: *****************
Element path: #k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5 > kendo-grid-list > .k-grid-content.k-virtual-content
Snippet: <div class="k-grid-content k-virtual-content" style="width: 1588px;">
How to fix:
Fix any of the following:
Element should have focusable content
Element should be focusable
Environment: Microsoft Edge version 136.0.0.0
Title: WCAG 1.3.1: Ensure elements with an ARIA role that require child roles contain them (tbody)
Tags: Accessibility, WCAG 1.3.1, aria-required-children
Issue: Ensure elements with an ARIA role that require child roles contain them (aria-required-children - https://accessibilityinsights.io/info-examples/web/aria-required-children)
Target application: ***************
Element path: #k-8d34ce03-5f96-4632-b56a-ea5497e2d1e5 > kendo-grid-list > .k-grid-content.k-virtual-content > div[role="presentation"] > .k-grid-table > tbody
Snippet: <tbody kendogridtablebody="" role="rowgroup" class="k-table-tbody">
How to fix:
Fix any of the following:
Element has children which are not allowed: [role=gridcell]
Environment: Microsoft Edge version 136.0.0.0