WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2015 03:46:12 PM (4 years ago)
Author:
helen
Message:

Buttons: Standardize on .button-link for link-like buttons.

This serves as both a reset and some basic styling. The class name also aligns with parallel components in other popular projects.

props paulwilde for the initial patch.
fixes #34242.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php

    r35389 r35636  
    7373                </span>
    7474                <span class="item-controls">
    75                     <button type="button" class="not-a-button item-edit" aria-expanded="false"><span class="screen-reader-text"><?php
     75                    <button type="button" class="button-link item-edit" aria-expanded="false"><span class="screen-reader-text"><?php
    7676                        /* translators: 1: Title of a menu item, 2: Type of a menu item */
    7777                        printf( __( 'Edit menu item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
    7878                    ?></span><span class="toggle-indicator" aria-hidden="true"></span></button>
    79                     <button type="button" class="not-a-button item-delete submitdelete deletion"><span class="screen-reader-text"><?php
     79                    <button type="button" class="button-link item-delete submitdelete deletion"><span class="screen-reader-text"><?php
    8080                        /* translators: 1: Title of a menu item, 2: Type of a menu item */
    8181                        printf( __( 'Remove Menu Item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
     
    139139                <# } #>
    140140
    141                 <button type="button" class="not-a-button item-delete submitdelete deletion"><?php _e( 'Remove' ); ?></button>
     141                <button type="button" class="button-link item-delete submitdelete deletion"><?php _e( 'Remove' ); ?></button>
    142142                <span class="spinner"></span>
    143143            </div>
Note: See TracChangeset for help on using the changeset viewer.