Closed thompsongl closed 3 years ago
Similar to how className is applied, style could be applied to the main div (the one with the data-focus-lock-disabled attribute).
className
style
div
data-focus-lock-disabled
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.
lockProps
react-focus-lock
After switching to react-focus-on from react-focus-lock this has been the only API gap. Thanks for your work!
react-focus-on
Valid point. A good addition to #42
Similar to how
className
is applied,style
could be applied to the maindiv
(the one with thedata-focus-lock-disabled
attribute).Happy to open a pull request, but wanted to ask your preference:
1) Allow
style
prop only. 2) AllowlockProps
prop similar toreact-focus-lock
where any valid HTML or React attribute can be applied.After switching to
react-focus-on
fromreact-focus-lock
this has been the only API gap. Thanks for your work!