Skip to content

[EuiSelectable] aria-posinset value wrong when there is a group label #6565

Closed

Description

@Heenawter

As noted by @cee-chen, the following code "assume[s] that group label(s) come first, and not, e.g. last":

aria-posinset={index + 1 - labelCount}

This means you can end up with an invalid aria-posinset - for example, when the group label is at the bottom of the list, the first element of your list will have aria-posinset="0" rather than aria-posinset="1", which is considered a critical Axe failure.

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