WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/30/2016 09:40:43 PM (3 years ago)
Author:
westonruter
Message:

Customize: Put focus on change button instead of remove button in media control.

Allow controls to specify the primary element to receive focus by adding a control-focus class.

Props adamsilverstein, westonruter.
Fixes #36337.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-media-control.php

    r36769 r37152  
    197197                <# if ( data.canUpload ) { #>
    198198                <button type="button" class="button remove-button">{{ data.button_labels.remove }}</button>
    199                 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button">{{ data.button_labels.change }}</button>
     199                <button type="button" class="button upload-button control-focus" id="{{ data.settings['default'] }}-button">{{ data.button_labels.change }}</button>
    200200                <div style="clear:both"></div>
    201201                <# } #>
Note: See TracChangeset for help on using the changeset viewer.