docs(Virtualizer): update examples for better accessibility and add a11y docs section #33537
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Couple docs-only updates to virtualizer stories that add:
tabindex
+aria-label
to examples to allow keyboard scrolling & avoid having all content get read out when the scroll area is focused (some but not all browsers, e.g. Edge and Firefox, already make scroll overflow regions tabbable by default).aria-live
to the scroll-to example's text for screen reader feedback on scrolltabindex
& when it is or isn't neededI only added these to the scroll & dynamic scroll components since the base virtualizer doesn't have the
container
node built in, but I was kinda iffy on whether the base virtualizer should have it too.Related Issue(s)