Releases: nico3333fr/van11y-accessible-tab-panel-aria
Releases · nico3333fr/van11y-accessible-tab-panel-aria
Version 2.0: Add API to add programmatically tab panels
If you need to apply tab panels script to <div id="newContent">your tab panel source</div>
:
van11yAccessibleTabPanelAria(document.getElementById('newContent'));
- Updated documentation
- no more need to use
id="label_xxxx"
on links, the script will generate them.
Tab panel opened by default
If you need a tab to be opened by default, it is possible, using data-selected="1"
on the .js-tablist__link
you need to be opened (See the demo, second example).
Other tabs are still available, here are the rules for this feature:
- The fragment detection (explained below) will always have priority on this feature;
- If there are several
data-selected="1"
put on tabs in the same group (which does not make sense and should never happen), the first one will be used.
Clean up version
Bugfixes, cleanup, re-indentation, and rebuild of the script
1st release of the script
1st release of the script: https://van11y.net/accessible-tab-panel/