bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.31k stars 3.05k forks source link

Accessibility improvements for role on Table & Column components #1691

Closed laughnan closed 1 month ago

laughnan commented 3 years ago

Changes

We're seeing an issue that impacts multiple tables in our application. This is mostly on Windows computers and causes the screenreader to go into a different mode when tabbing into the div (this has role "grid" and the columns have role "gridcell").

Contribution Checklist

Thanks for contributing to react-virtualized!

Before submitting a pull request, please complete the following checklist:

Here is a short checklist of additional things to keep in mind before submitting:

laughnan commented 3 years ago

Creating this PR to support accessibility improvements noted in https://github.com/bvaughn/react-virtualized/issues/1604

laughnan commented 3 years ago

All initial tests in https://github.com/bvaughn/react-virtualized/pull/1691/commits/429a472df69e6ab1c0a25ddca4ae112b88cbf104 pass (without new tests) showing that this change is backwards compatible.

laughnan commented 3 years ago

Component testing

  1. Update role prop for Table and Column

Screen Shot 2021-09-09 at 19 25 39

  1. Confirmation of the UI rendering the right values

react-virtualized

laughnan commented 3 years ago

@wuweiweiwu can you give this a review?