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/class-wp-customize-nav-menus.php

    r35501 r35636  
    678678                            <span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
    679679                        </span>
    680                         <button type="button" class="not-a-button item-add">
     680                        <button type="button" class="button-link item-add">
    681681                            <span class="screen-reader-text"><?php
    682682                                /* translators: 1: Title of a menu item, 2: Type of a menu item */
     
    741741                <h4 class="accordion-section-title" role="presentation">
    742742                    <?php _e( 'Custom Links' ); ?>
    743                     <button type="button" class="not-a-button" aria-expanded="false">
     743                    <button type="button" class="button-link" aria-expanded="false">
    744744                        <span class="screen-reader-text"><?php _e( 'Toggle section: Custom Links' ); ?></span>
    745745                        <span class="toggle-indicator" aria-hidden="true"></span>
     
    778778                        <span class="spinner"></span>
    779779                        <span class="no-items"><?php _e( 'No items' ); ?></span>
    780                         <button type="button" class="not-a-button" aria-expanded="false">
     780                        <button type="button" class="button-link" aria-expanded="false">
    781781                            <span class="screen-reader-text"><?php
    782782                            /* translators: %s: Title of a section with menu items */
Note: See TracChangeset for help on using the changeset viewer.