Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
fix: remove tabindex="-1" on primary navigation elements
Browse files Browse the repository at this point in the history
#Closes #552
  • Loading branch information
gillerr committed Dec 12, 2017
1 parent ad79a33 commit 42949df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/assets/js/rich-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
});
});

// "tabindex = -1" is added by bootstrap-accessibility-plugin to dropdown's elements.
// The yamm menu uses the dropdown class, but is not a conventional dropdown, hence, the tabindex must not
// be present.
$dropdown.find('li a').removeAttr('tabindex');

$dropdownToggle.on('click', function() {
$(this).parents($dropdown).trigger('get.hidden');
});
Expand Down

0 comments on commit 42949df

Please sign in to comment.