10up / component-library

A library of barebones front-end components built with WordPress and accessibility in mind.
https://baseline.10up.com/
MIT License
59 stars 12 forks source link

Fix: Losing focus inside tabs #37

Closed Firestorm980 closed 3 years ago

Firestorm980 commented 3 years ago

Description of the Change

Benefits

Possible Drawbacks

None known.

Verification Process

  1. Open the demo page for tabs after compile
  2. Navigate the page with tab and keyboard
  3. Confirm that only the tabpanel and content inside the tabpanel are focusable
  4. Confirm that focus continues in the natural page order after the panel content
  5. Confirm that only parent tab from tab list is focused in reverse
  6. Confirm that focus continues in reverse page order after tab list

Checklist:

https://github.com/10up/component-library/issues/18

nicholasio commented 3 years ago

@Firestorm980 can you give me permission to push commits to your PR? Also, you should be able to use this repo directly instead of creating a fork, let me know if you don't have push permission to this repo.