Skip to content

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

@Heenawter

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions