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

Allow style prop on <FocusOn /> #46

Closed
thompsongl opened this issue Jul 30, 2020 · 1 comment · Fixed by #47
Closed

Allow style prop on <FocusOn /> #46

thompsongl opened this issue Jul 30, 2020 · 1 comment · Fixed by #47
Assignees

Comments

@thompsongl
Copy link
Contributor

Similar to how className is applied, style could be applied to the main div (the one with the data-focus-lock-disabled attribute).

Happy to open a pull request, but wanted to ask your preference:

  1. Allow style prop only.
  2. Allow lockProps prop similar to react-focus-lock where any valid HTML or React attribute can be applied.

After switching to react-focus-on from react-focus-lock this has been the only API gap. Thanks for your work!

@theKashey
Copy link
Owner

Valid point. A good addition to #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants