mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Accessibility shortcuts: new looks and fix for the WebKit focus bug, props lessbloat, fixes #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@22249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -369,6 +369,12 @@ $(document).ready( function() {
|
||||
$(document).on('click.wp-accessibility-blur', 'a', function() {
|
||||
$(this).blur();
|
||||
});
|
||||
|
||||
// Scroll into view when focused
|
||||
$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
|
||||
if ( e.target.scrollIntoView )
|
||||
e.target.scrollIntoView(false);
|
||||
});
|
||||
});
|
||||
|
||||
// internal use
|
||||
|
||||
Reference in New Issue
Block a user