Skip to content
Snippets Groups Projects

#3210435 | Making secondary tabs not to be re-ordered for mobile.

Open #3210435 | Making secondary tabs not to be re-ordered for mobile.
1 unresolved thread
1 unresolved thread

I made Drupal.behaviors.navTab to ignore secondary tabs, so these aren't re ordered to show the active element first. Since secondary tabs aren't collapsible, this could probably work regarding a11y issues.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
8 8 (($, Drupal) => {
9 9 function init(tab) {
10 10 const $tab = $(tab);
11 const $target = $tab.find('[data-drupal-nav-tabs-target]');
11 const $target = $tab
12 .find('[data-drupal-nav-tabs-target]')
13 .not('.tabs--secondary');
  • Sagar Chauhan added 1 commit

    added 1 commit

    Compare with previous version

  • Javier Reartes added 646 commits

    added 646 commits

    Compare with previous version

  • Javier Reartes changed target branch from 9.3.x to 9.4.x

    changed target branch from 9.3.x to 9.4.x

  • Konstantin Shupenko added 292 commits

    added 292 commits

    Compare with previous version

  • added 1 commit

    • e3e84532 - Making secondary tabs not to be re-ordered for mobile

    Compare with previous version

  • added 1 commit

    • c8dbfa04 - Making secondary tabs not to be re-ordered for mobile

    Compare with previous version

  • Please register or sign in to reply
    Loading