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
[accessibility] OptionList shows incorrect count during keyboard navigation. #707
The only thing rendered is the current active plus next and previous items. Nice way to keep things light for sure, but it would be nice if there is a way to convey the length of the options to the screenreader correctly.
I also noticed issues #473 and #474, but did not see any mention of this specific issue in either (unless i just missed the essence of those issues).
It is possible to pass aria-setsize and aria-posinset into the elements, so even if rc-component renders only 3 items, the screen reader will read the correct number of elements.
This has been fixed by #1226 and released in @rc-component/select@1.11.0. Current OptionList.tsx supplies aria-setsize and aria-posinset on the virtual accessibility options, including group-aware positions, so screen readers can announce the full option count even though only the active option and its neighbors are mounted in the hidden list. I verified the fix is present on current master at f9f0128.
Activity
briannhinton commentedon May 4, 2022
Have you come across any solution? @rynodivino
rynodivino commentedon Jul 25, 2022
Hi @mrbrianhinton, unfortunately no
Tims101 commentedon Nov 4, 2025
It is possible to pass
aria-setsizeandaria-posinsetinto the elements, so even if rc-component renders only 3 items, the screen reader will read the correct number of elements.nrps9909 commentedon Aug 26, 2026
This has been fixed by #1226 and released in
@rc-component/select@1.11.0. CurrentOptionList.tsxsuppliesaria-setsizeandaria-posinseton the virtual accessibility options, including group-aware positions, so screen readers can announce the full option count even though only the active option and its neighbors are mounted in the hidden list. I verified the fix is present on current master at f9f0128.yoyo837 commentedon Aug 27, 2026
Close by #1226