-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiSelectableTemplateSitewide] Pass keyboard/mouse event to onChange handler #5926
Conversation
- which will allow consumers to, e.g. react to shift clicks
… to react to shift key
Preview documentation changes for this PR: https://eui.elastic.co/pr_5926/ |
@1Copenut do you mind code reviewing this real quick? I don't think there's any accessibility implications here, so this should be a fairly quick QA / stopgap solution for Kibana until we get a chance to refactor EuiSelectable to allow |
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.
LGTM! I tested briefly with keyboard and VoiceOver. No regression and the behavior worked as expected.
Your comment about Kibana needing to inform users of the new behavior is excellent.
…e` event to react to shift key" This reverts commit 1d893f4.
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5926/ |
… handler (elastic#5926) * Enhance EuiSelectable to send back click/keyboard events - which will allow consumers to, e.g. react to shift clicks * [REVERT ME] Example of how Kibana would update their `onChange` event to react to shift key * changelog * Revert "[REVERT ME] Example of how Kibana would update their `onChange` event to react to shift key" This reverts commit 1d893f4.
Summary
This PR attempts to partially address #5408 - or at least unblock Kibana so they can get a basic 'open this link if the user was holding down the shift/cmd key' behavior.
This is not intended to be a best/perfect solution, which would involve changing the API & markup of
EuiSelectable
significantly to allow<a>
links and native a link behavior. This is also not a perfect screen reader solution as Kibana will likely need to provide some hidden or visible text hint to users thatshift+click
is even an option.QA
alert
pops upChecklist
- [ ] Checked in both light and dark modes- [ ] Checked in mobile- [ ] Added documentation- [ ] Checked Code Sandbox works for any docs examples- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes- [ ] Updated the Figma library counterpart