mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Header images: Improve accessibility of Randomize buttons.
props ehg. see #27598, #21785. git-svn-id: https://develop.svn.wordpress.org/trunk@27970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -771,18 +771,14 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control
|
||||
?>
|
||||
<script type="text/template" id="tmpl-header-choice">
|
||||
<# if (data.random) { #>
|
||||
|
||||
<div class="placeholder random">
|
||||
<div class="inner">
|
||||
<button type="button"><span class="dashicons dashicons-randomize dice"></span>
|
||||
<# if ( data.type === 'uploaded' ) { #>
|
||||
<?php _e( 'Randomize uploaded headers' ); ?>
|
||||
<# } else if ( data.type === 'default' ) { #>
|
||||
<?php _e( 'Randomize suggested headers' ); ?>
|
||||
<# } #>
|
||||
<button type="button" class="button display-options random">
|
||||
<span class="dashicons dashicons-randomize dice"></span>
|
||||
<# if ( data.type === 'uploaded' ) { #>
|
||||
<?php _e( 'Randomize uploaded headers' ); ?>
|
||||
<# } else if ( data.type === 'default' ) { #>
|
||||
<?php _e( 'Randomize suggested headers' ); ?>
|
||||
<# } #>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<# } else { #>
|
||||
|
||||
|
||||
@@ -121,7 +121,6 @@
|
||||
this.$el.html(this.template(this.extendedModel()));
|
||||
|
||||
if (this.model.get('random')) {
|
||||
this.$el.addClass('button display-options');
|
||||
this.setPlaceholder(40);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user