Customizer Theme Switcher: Fix tabbing order if section is open.

see #31289.

git-svn-id: https://develop.svn.wordpress.org/trunk@32087 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-04-08 19:02:57 +00:00
parent 379393651b
commit c3143d4bd0
1 changed files with 2 additions and 0 deletions

View File

@ -723,6 +723,7 @@
}
} );
topPanel.attr( 'tabindex', '-1' );
changeBtn.attr( 'tabindex', '-1' );
customizeBtn.focus();
} else {
siblings.removeClass( 'open' );
@ -735,6 +736,7 @@
}
} );
topPanel.attr( 'tabindex', '0' );
customizeBtn.attr( 'tabindex', '0' );
changeBtn.focus();
container.scrollTop( 0 );
}