[Feature / Selectable A11y] Improve basic use case a11y#3070
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3070/ |
React-Virtualized for React-Window (& some a11y)React-Virtualized for React-Window (& some a11y)
This is coming from the
because |
|
💚 CLA has been signed |
0181aa4 to
74525fb
Compare
74525fb to
ec23a14
Compare
|
Ready for review! 3 things to note:
|
|
What do people think — is this a breaking change? It's only breaking in that an underlying library changed and DOM changed. No direct props changed. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3070/ |
thompsongl
left a comment
There was a problem hiding this comment.
EUI's interface didn't change, so it doesn't appear to be a breaking change.
|
EUI does have a prop that just passes everything through to the underlying library though... |
Ah yes, |
thompsongl
left a comment
There was a problem hiding this comment.
Just a couple notes:
This is going into a feature branch, so no changelog entry is necessary yet (do it when the feature branch goes into master). So, just make a note of the breaking change.
react-window is a good replacement 👍: https://github.com/bvaughn/react-window#how-is-react-window-different-from-react-virtualized
EuiSelectable functionality appears unchanged from what's currently released
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3070/ |
chandlerprall
left a comment
There was a problem hiding this comment.
Changes LGTM; pulled this and tested locally, especially the keyboard navigation & focus stuff.
Definitely a breaking change, that button -> li update might introduce a few headaches but shouldn't be major.
React-Virtualized for React-Window (& some a11y)
Sorry for conflating two things in this PR - I thought all the changes were going to be smaller but as they started to pile on, I thought it'd be better to cut this PR and open a feature branch for future work.
Summary
This PR accomplishes two things:
react-virtualizedforreact-window+react-virtualized-auto-sizervirtualizedmakes some bad a11y assumptions thatreact-windowdoesn't make. They're both made by the same person actually andreact-windowis his slimmer replacement forvirtualized.react-virtualized-auto-sizerbecause after this effort, only one other component usesreact-virtualizedwhich would probably be good to swap forreact-windowas well, completetly removingreact-virtualizedas a dependencyBreaking changes
virtualizedPropsoff ofEuiSelectableOptionsListis now passed intoreact-windowinstead ofreact-virtualizedwhich accept different hingsFuture work
Mostly a11y work ahead:
searchableselectables, we need to move a lot of theariaattributes to the<input />instead of the<ul>where they are nowaria-selectedstatesearchableChecklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Added documentation examples- [ ] A changelog entry exists and is marked appropriately