Reach-ui: Manual tab activation?

Created on 1 Jun 2019  路  7Comments  路  Source: reach/reach-ui

It looks like the Tabs component supports automatic activation out of the box. Is there a way to make it work with manual activation?

Help Wanted Enhancement

Most helpful comment

Sure, here's the manual activation example: https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-2/tabs.html

If the contents of every tab panel are the result of an ajax call, then you don't want to automatically activate every tab. Instead you want the user to be able to navigate to the desired tab and then manually activate it.

All 7 comments

Can you elaborate on this a little more? "Manual activation"?

Sure, here's the manual activation example: https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-2/tabs.html

If the contents of every tab panel are the result of an ajax call, then you don't want to automatically activate every tab. Instead you want the user to be able to navigate to the desired tab and then manually activate it.

Thanks @ZebraFlesh, I just wanted more info for @mjackson and @chancestrickland who are going through issues

@ZebraFlesh Have you found a workaround for manual activation in the meantime?

@chancestrickland Big +1 for this!

No work around at this time that I鈥檓 aware of

BTW this was introduced with the keyboardActivation prop. https://reacttraining.com/reach-ui/tabs#tabs-keyboardactivation

Awesome, thank you for this!

Was this page helpful?
0 / 5 - 0 ratings