Open bashleigh opened 7 months ago
@bashleigh Don't think this is going to work - AXE standards do not permit a tab index greater than 0 - see https://dequeuniversity.com/rules/axe/4.8/tabindex?application=axeAPI
Any thoughts or should we close?
I would avoid numbered tab index. It shouldn't be necessary in our type of sites
I agree. Similar to the AXE standards, MDN docs suggest tabindex="0"
and tabindex="-1"
are the only values that should be used.
Create a provider and hook to return a referenced sequential number to be used within aria label tab index.
Use the
useRef
method to create a reference to be updated within a function returned from theuseTabIndex
hook.Something like so
This would then be usable within a component like so
Above approach will not work for the entire project. It'll have to be done using local storage