Skip to content

[EuiDataGrid] Nested interactive controls in sorting toolbar popover are causing axe/a11y failures #6516

Closed

Description

@bhavyarm

I am trying to update axe-core engine to 4.6.1 in Kibana - elastic/kibana#144940 and running into this violation in multiple tests.

Bug logged - elastic/kibana#148567
elastic/kibana#148538

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)

Logs for some of the test violations:

  1. on painless_lab
  2. On search_profiler.ts

Activity

  1. cee-chen commented on Jan 10, 2023

    @cee-chen
    Contributor

    @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?

  2. bhavyarm commented on Jan 10, 2023

    @bhavyarm
    ContributorAuthor

    @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
    211366427-e3dde9a6-f040-4d6c-af12-7993da92bc5a

  3. 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
  4. cee-chen commented on Jan 10, 2023

    @cee-chen
    Contributor

    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

  5. cee-chen commented on Jan 10, 2023

    @cee-chen
    Contributor

    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

  6. bhavyarm commented on Jan 11, 2023

    @bhavyarm
    ContributorAuthor

    amazing. Thanks @cee-chen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions