Skip to content

Releases: nico3333fr/van11y-accessible-tab-panel-aria

Version 2.0: Add API to add programmatically tab panels

26 Oct 13:09
Compare
Choose a tag to compare

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

13 Sep 16:08
Compare
Choose a tag to compare

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

11 Apr 11:59
Compare
Choose a tag to compare

Bugfixes, cleanup, re-indentation, and rebuild of the script

1st release of the script

09 Mar 16:09
Compare
Choose a tag to compare