Better context for autofocused elements for screen readers.
Props joedolson for initial patch. Fixes #30706. git-svn-id: https://develop.svn.wordpress.org/trunk@33158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d53063731f
commit
4f606c1bb3
@ -1310,10 +1310,8 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<?php if ( current_user_can( 'upload_files' ) ): ?>
|
<?php if ( current_user_can( 'upload_files' ) ): ?>
|
||||||
<?php /* translators: Hide as in hide header image via the Customizer */ ?>
|
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
||||||
<button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
|
<button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
|
||||||
<?php /* translators: New as in add new header image via the Customizer */ ?>
|
|
||||||
<button type="button" class="button new"><?php _ex( 'Add new image', 'header image' ); ?></button>
|
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user