-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature / Selectable A11y] Improve basic use case a11y #3070
[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/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-virtualized
forreact-window
+react-virtualized-auto-sizer
virtualized
makes some bad a11y assumptions thatreact-window
doesn't make. They're both made by the same person actually andreact-window
is his slimmer replacement forvirtualized
.react-virtualized-auto-sizer
because after this effort, only one other component usesreact-virtualized
which would probably be good to swap forreact-window
as well, completetly removingreact-virtualized
as a dependencyBreaking changes
virtualizedProps
off ofEuiSelectableOptionsList
is now passed intoreact-window
instead ofreact-virtualized
which accept different hingsFuture work
Mostly a11y work ahead:
searchable
selectables, we need to move a lot of thearia
attributes to the<input />
instead of the<ul>
where they are nowaria-selected
statesearchable
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Added documentation examples- [ ] A changelog entry exists and is marked appropriately