Skip to content

Commit

Permalink
Removed incremented tab indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowyers committed Jun 30, 2015
1 parent c23b5bb commit fd15da2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/js/responsive-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@
*/
setupCallback: false,

/**
* the tabindex start value - integer
* @default 1
*/
tabindexStart: 1,

/**
* Use development mode - outputs information to console
* @default false
Expand Down Expand Up @@ -293,7 +287,7 @@
// Disable click events
.on( 'click.rm', tButtonClick )

.attr( 'tabindex', 0 )
.not( '[tabindex]' ).attr( 'tabindex', 0 )
;

// Add menu class and make submenus accessibly hidden
Expand Down Expand Up @@ -356,7 +350,7 @@
var $el = $( this );
$el
.addClass( o.menuItemClass)
.children( 'a' ).attr( 'tabindex', 0 )
.children( 'a' ).not( '[tabindex]' ).attr( 'tabindex', 0 )
;
if ( $el.is( ':first-child') ) {
$el.addClass( o.itemFirst );
Expand Down

0 comments on commit fd15da2

Please sign in to comment.