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.
As noted by @cee-chen, the following code "assume[s] that group label(s) come first, and not, e.g. last":
eui/src/components/selectable/selectable_list/selectable_list.tsx
Line 293 in 784a553
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 havearia-posinset="0"rather thanaria-posinset="1", which is considered a critical Axe failure.