WordPress.org

Make WordPress Core

Changeset 39194


Ignore:
Timestamp:
11/10/2016 02:55:56 AM (3 years ago)
Author:
helen
Message:

Customize: Make "Add New Page" buttons less intrusive.

They now better match the existing add functionality from the category metabox and are better separated from the surrounding inputs. All hail .button-link.

fixes #38164. see #35126.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r39163 r39194  
    743743}
    744744
     745.customize-control-dropdown-pages .add-new-toggle {
     746    margin-left: 1px;
     747    color: #0073aa;
     748    font-weight: 600;
     749    line-height: 28px;
     750    text-decoration: underline;
     751}
     752
     753.customize-control-dropdown-pages .add-new-toggle:hover,
     754.customize-control-dropdown-pages .add-new-toggle:active {
     755    color: #00a0d2;
     756}
     757
     758.customize-control-dropdown-pages .add-new-toggle:focus {
     759    color: #124964;
     760}
     761
    745762#customize-preview iframe {
    746763    width: 100%;
  • trunk/src/wp-includes/class-wp-customize-control.php

    r39051 r39194  
    589589                </label>
    590590                <?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
    591                     <button type="button" class="button add-new-toggle"><?php echo get_post_type_object( 'page' )->labels->add_new_item; ?></button>
     591                    <button type="button" class="button-link add-new-toggle"><?php
     592                        /* translators: %s: add new page label */
     593                        printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
     594                    ?></button>
    592595                    <div class="new-content-item">
    593596                        <label for="create-input-<?php echo $this->id; ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label>
Note: See TracChangeset for help on using the changeset viewer.