box / box-content-preview

JavaScript library for rendering files stored on Box
https://developer.box.com/docs/box-content-preview
Other
106 stars 113 forks source link

feat(viewer): Add focus trap for fullscreen #1439

Closed ConradJChan closed 2 years ago

ConradJChan commented 2 years ago

Adds FocusTrap class which takes an element and allows you to enable or disable focus trapping.

This class is used for when Preview enters fullscreen to constrain tab navigation to within the visible previewed content. This can also be applied to the print modal.

TODO: