mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Improve keyboard accessibility on Custom Header and Custom Background screen.
props florianziegler. fixes #29289. git-svn-id: https://develop.svn.wordpress.org/trunk@30327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -557,7 +557,7 @@ class Custom_Image_Header {
|
||||
else
|
||||
$style = ' style="display:none;"';
|
||||
?>
|
||||
<h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo('url'); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo('url'); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<div id="desc" class="displaying-header-text" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -604,10 +604,10 @@ class Custom_Image_Header {
|
||||
?>
|
||||
<p>
|
||||
<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
|
||||
<a id="choose-from-library-link" class="button"
|
||||
<button id="choose-from-library-link" class="button"
|
||||
data-update-link="<?php echo esc_attr( $modal_update_href ); ?>"
|
||||
data-choose="<?php esc_attr_e( 'Choose a Custom Header' ); ?>"
|
||||
data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></a>
|
||||
data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></button>
|
||||
</p>
|
||||
</form>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user