Skip to content

Add focus trap, to disallow tabbing outside the modal#408

Merged
RobbieTheWagner merged 3 commits intomasterfrom
trap-focus
Jun 21, 2019
Merged

Add focus trap, to disallow tabbing outside the modal#408
RobbieTheWagner merged 3 commits intomasterfrom
trap-focus

Conversation

@RobbieTheWagner
Copy link
Member

@RobbieTheWagner RobbieTheWagner commented Jun 21, 2019

This keyboard trap implementation was taken from https://bitsofco.de/accessible-modal-dialog/ and is related to #198

@RobbieTheWagner
Copy link
Member Author

@chuckcarpenter do you think we should trap the keyboard for both modal and non-modal or only modal?

Copy link
Member

@chuckcarpenter chuckcarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hadn't considered this, but makes sense to me.

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.

2 participants