mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Accessibility: fix the Skip to content link, show it on :focus, improve the styling of the skip links when shown, see #21310, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21435 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -107,7 +107,7 @@ if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_them
|
||||
?>
|
||||
|
||||
<div id="wpwrap">
|
||||
<a id="wpbody-content-shortcut" tabindex="5" href="#wpbody-content" class="hide-if-no-js screen-reader-text"><?php _e('Skip to main content'); ?></a>
|
||||
<a tabindex="1" href="#wpbody-content" class="screen-reader-text screen-reader-shortcut"><?php _e('Skip to main content'); ?></a>
|
||||
<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
|
||||
<div id="wpcontent">
|
||||
|
||||
@@ -123,7 +123,7 @@ $current_screen->set_parentage( $parent_file );
|
||||
|
||||
?>
|
||||
|
||||
<div id="wpbody-content" tabindex="-1" aria-label="<?php esc_attr_e('Main content'); ?>">
|
||||
<div id="wpbody-content" aria-label="<?php esc_attr_e('Main content'); ?>">
|
||||
<?php
|
||||
|
||||
$current_screen->render_screen_meta();
|
||||
|
||||
Reference in New Issue
Block a user