Skip to content
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

feat(Datagrid): add keyboard support for clickable rows #2914

Conversation

matthewgallo
Copy link
Member

Contributes to #2910

Adds keyboard support to the useOnRowClick hook.

What did you change?

useOnRowClick.js

How did you test and verify your work?

Storybook

@netlify
Copy link

netlify bot commented Apr 24, 2023

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 1543a4f
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6449245c9e3fa00009cccd18
😎 Deploy Preview https://deploy-preview-2914--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@AlexanderMelox AlexanderMelox self-assigned this Apr 25, 2023
@AlexanderMelox
Copy link
Contributor

Question, should arrow keys make it the focus go up and down in this situation too?

@matthewgallo
Copy link
Member Author

Yeah good question, I don't think so because there is not an active focus region with focusable elements inside (such as seen with the useInlineEdit hook or the DataSpreadsheet).

@matthewgallo matthewgallo merged commit cbdecd8 into carbon-design-system:main Apr 26, 2023
@matthewgallo matthewgallo deleted the 2910-datagrid-clickable-rows-keyboard branch April 26, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants