Make WordPress Core

Ticket #21785: 21785-a11y-ui-improvements.2.diff

File 21785-a11y-ui-improvements.2.diff, 2.8 KB (added by ehg, 11 years ago)
  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index 9a95eb1..ed9de9e 100644
    body { 
    465465        margin-bottom: 18px;
    466466}
    467467
    468 #customize-control-header_image .uploaded button,
    469 #customize-control-header_image .default button {
     468#customize-control-header_image .uploaded button:not(.random),
     469#customize-control-header_image .default button:not(.random) {
    470470        width: 100%;
    471471        padding: 0;
    472472        margin: 0;
    body { 
    474474        border: none;
    475475        color: inherit;
    476476        cursor: pointer;
    477         outline: none;
    478477}
    479478
    480479#customize-control-header_image button img {
    body { 
    579578        height: 40px;
    580579}
    581580
    582 #customize-control-header_image .random .inner {
    583         display: block;
     581#customize-control-header_image button.random {
     582        width: 100%;
     583        height: 40px;
     584}
     585
     586#customize-control-header_image button.random .dice {
     587        margin-top: 4px;
    584588}
    585589
    586 #customize-control-header_image .placeholder:hover .dice {
     590#customize-control-header_image .placeholder:hover .dice,
     591#customize-control-header_image .header-view:hover > button.random .dice {
    587592        -webkit-animation: dice-color-change 3s infinite;
    588593        -ms-animation: dice-color-change 3s infinite;
    589594        animation: dice-color-change 3s infinite;
  • src/wp-includes/class-wp-customize-control.php

    diff --git src/wp-includes/class-wp-customize-control.php src/wp-includes/class-wp-customize-control.php
    index c163247..f93a099 100644
    final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control 
    771771                ?>
    772772                <script type="text/template" id="tmpl-header-choice">
    773773                        <# if (data.random) { #>
    774 
    775                         <div class="placeholder random">
    776                                 <div class="inner">
    777                                         <button type="button"><span class="dashicons dashicons-randomize dice"></span>
    778                                         <# if ( data.type === 'uploaded' ) { #>
    779                                                 <?php _e( 'Randomize uploaded headers' ); ?>
    780                                         <# } else if ( data.type === 'default' ) { #>
    781                                                 <?php _e( 'Randomize suggested headers' ); ?>
    782                                         <# } #>
     774                                        <button type="button" class="button display-options random">
     775                                                <span class="dashicons dashicons-randomize dice"></span>
     776                                                <# if ( data.type === 'uploaded' ) { #>
     777                                                        <?php _e( 'Randomize uploaded headers' ); ?>
     778                                                <# } else if ( data.type === 'default' ) { #>
     779                                                        <?php _e( 'Randomize suggested headers' ); ?>
     780                                                <# } #>
    783781                                        </button>
    784                                 </div>
    785                         </div>
    786782
    787783                        <# } else { #>
    788784
  • src/wp-includes/js/customize-views.js

    diff --git src/wp-includes/js/customize-views.js src/wp-includes/js/customize-views.js
    index 39ad65b..8dbc0c1 100644
     
    121121                        this.$el.html(this.template(this.extendedModel()));
    122122
    123123                        if (this.model.get('random')) {
    124                                 this.$el.addClass('button display-options');
    125124                                this.setPlaceholder(40);
    126125                        }