You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiDataGrid] Nested interactive controls in sorting toolbar popover are causing axe/a11y failures #6516
Error: retry.try timeout: Error: a11y report:
VIOLATION
[nested-interactive]: Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies
Impact: serious
Help: https://dequeuniversity.com/rules/axe/4.6/nested-interactive?application=axeAPI
Elements:
- <button role="tab" aria-selected="true" type="button" class="euiTab euiTab-isSelected css-1dnscl1-euiTab-selected">
at AccessibilityService.assertValidAxeReport (a11y.ts:75:13)
at AccessibilityService.testAppSnapshot (a11y.ts:48:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at painless_lab.ts:54:9
at runAttempt (retry_for_success.ts:29:15)
at retryForSuccess (retry_for_success.ts:68:21)
at RetryService.try (retry.ts:31:12)
at Context.<anonymous> (painless_lab.ts:53:7)
at Object.apply (wrap_function.js:73:16)
at onFailure (retry_for_success.ts:17:9)
at retryForSuccess (retry_for_success.ts:59:13)
at RetryService.try (retry.ts:31:12)
at Context.<anonymous> (painless_lab.ts:53:7)
at Object.apply (wrap_function.js:73:16)
changed the title [-]a11y error while trying to update to axe-core engine - [nested-interactive]: Ensures interactive controls are not nested as they are not always announced by screen readers [/-][+][EuiDataGrid] Nested interactive controls in sorting toolbar popover are causing axe/a11y failures[/+]on Jan 10, 2023
Activity
cee-chen commentedon Jan 10, 2023
@bhavyarm it's not totally clear to me what particular piece of the UI axe is erroring on here - any chance you can include a visual screenshot?
bhavyarm commentedon Jan 10, 2023
@cee-chen so the axe-core update PR's test failure logs have many errors with the above validation
elastic/kibana#144940 (comment)
Here is the screenshot from discover for sort panel on datagrid from this issue - elastic/kibana#148567

[-]a11y error while trying to update to axe-core engine - [nested-interactive]: Ensures interactive controls are not nested as they are not always announced by screen readers [/-][+][EuiDataGrid] Nested interactive controls in sorting toolbar popover are causing axe/a11y failures[/+]cee-chen commentedon Jan 10, 2023
Perfection, thanks Bhavya! I can repro in EuiDataGrid's docs:
The issue is the nested X button within the draggable item (which is also a button).
This may also incidentally tie into #5894 and be worth addressing simultaneously
cee-chen commentedon Jan 10, 2023
I didn't end up resolving #5894 as part of this work, but it turns out the fix for this is relatively trivial and will be fixed in #6517
bhavyarm commentedon Jan 11, 2023
amazing. Thanks @cee-chen