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

[react-interactions] Add experimental FocusGrid API #16766

Merged
merged 3 commits into from
Sep 13, 2019

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Sep 12, 2019

This adds an experimental focus grid API that creates three linked components:

  • Container
  • Row (goes in a container)
  • Cell (goes in a row)

When keyboard arrows are pressed, the correct cell is automatically selected and its first focusable element is focused accordingly – providing directional navigation through grid based interfaces. It can also be used on a list, where there is only one cell per row.

I plan on adding up follow ups that validate they are nested in the correct orders. I also plan on adding Columns, which can take multiple Rows.

@sizebot
Copy link

sizebot commented Sep 12, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS against 45ee105

@trueadm trueadm merged commit b4b8a34 into facebook:master Sep 13, 2019
@trueadm trueadm deleted the focus-grid branch September 13, 2019 10:29
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.

4 participants