Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Playground block: A11Y: Add link to skip preview (#308)
## What and Why? Offer a skip link so users using assistive technology and keyboard-driven workflows have an opportunity to skip over the Playground preview iframe. Fixes #293 ## How? This PR adds a number of items that are hidden visually but shown if they receive focus. - Text noting the "Beginning of Playground Preview" - A link "Skip Playground Preview Iframe" - Test noting "End of Playground Preview" The "Skip Playground Preview Iframe" link is shown when focused. ![Screenshot 2024-06-14 at 2 02 55 PM](https://github.com/WordPress/playground-tools/assets/530877/7820b51c-a3d1-4a2c-b6d3-07d29b36bd3b) When the skip-link is clicked, it focuses "End of Playground Preview" which is revealed at the bottom of the preview pane when focused. ![Screenshot 2024-06-14 at 2 03 18 PM](https://github.com/WordPress/playground-tools/assets/530877/09baa829-8891-4888-ae91-4502948ec321) ## Testing Instructions In both the editor and front end, test working with an instance of the block by focusing the "Run" button, tab to the next link which is "Skip Playground Preview", click it, and confirm focus is moved to "End of Playground Preview".
- Loading branch information