qorf / quorum-language

The primary repository for the Quorum Programming Language
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

New dialog-based focus trapping for the web platform #11

Closed mwcampbell closed 2 years ago

mwcampbell commented 2 years ago

Quorum's flexible implementation of tab order requires that we trap focus inside the Quorum application on the web platform, so Quorum can handle tabbing rather than the browser. To do this in a way that makes sense to screen reader users, we now expose the root of the shadow DOM tree as a dialog, which the user can exit by pressing Escape, and provide a button to move focus into the dialog.