Closed GGD4V closed 3 years ago
Confirmed skip on first tab in Safari. Should fix.
Code is inside GlobalFixes, under comment "//Tab order of buttons in the top navigation bar"
Code started, see comment //GitHub error 96
See pull request https://github.com/MeD-DMC/Adapt-accessibilityfixes/pull/110
Issue: A focus order is being forced using tabindex="" with positive values. This prevent the natural focus order the page should have. For example, it skips the "Skip to main content" link and the top navigation, making them irrelevant. How to fix: Instead of using tabindex="" with positive values, make sure the "Skip to main content" link is the first element to get in focus by putting as the fist focus-able element in the DOM (which it already is?) and that all the other focus-able elements are in order in the DOM as well. If there's something you don't which to get in focus, you can use tabindex="-1" as long as it makes sense.