Make WordPress Core


Ignore:
Timestamp:
11/13/2016 06:59:21 PM (8 years ago)
Author:
westonruter
Message:

Customize: Prevent the "Hide Controls" button label from overrunning the device preview buttons.

Adds translation context for "Hide Controls" strings so translators can supply shorter strings where space is constrained. Adds styles to fade-out long the "Hide Controls" label where it would run into the device preview buttons.

Props westonruter, ocean90.
Fixes #38762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r39140 r39214  
    192192            </div>
    193193            <?php endif; ?>
    194             <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Hide Controls' ); ?>">
     194            <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>">
    195195                <span class="collapse-sidebar-arrow"></span>
    196                 <span class="collapse-sidebar-label"><?php _e( 'Hide Controls' ); ?></span>
     196                <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span>
    197197            </button>
    198198        </div>
Note: See TracChangeset for help on using the changeset viewer.