Make WordPress Core


Ignore:
Timestamp:
11/13/2015 03:46:12 PM (9 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-admin/includes/class-wp-press-this.php

    r34736 r35636  
    877877        if ( current_user_can( $taxonomy->cap->edit_terms ) ) {
    878878            ?>
    879             <button type="button" class="add-cat-toggle button-subtle" aria-expanded="false">
     879            <button type="button" class="add-cat-toggle button-link" aria-expanded="false">
    880880                <span class="dashicons dashicons-plus"></span><span class="screen-reader-text"><?php _e( 'Toggle add category' ); ?></span>
    881881            </button>
     
    962962        if ( $user_can_assign_terms ) {
    963963            ?>
    964             <button type="button" class="button-reset button-link tagcloud-link" id="link-post_tag"><?php echo $taxonomy->labels->choose_from_most_used; ?></button>
     964            <button type="button" class="button-link tagcloud-link" id="link-post_tag"><?php echo $taxonomy->labels->choose_from_most_used; ?></button>
    965965            <?php
    966966        }
     
    13421342            </a>
    13431343        </h1>
    1344         <button type="button" class="options button-subtle closed">
     1344        <button type="button" class="options button-link closed">
    13451345            <span class="dashicons dashicons-tag on-closed"></span>
    13461346            <span class="screen-reader-text on-closed"><?php _e( 'Show post options' ); ?></span>
     
    14311431
    14321432                <?php if ( $supports_formats ) : ?>
    1433                     <button type="button" class="button-reset post-option">
     1433                    <button type="button" class="button-link post-option">
    14341434                        <span class="dashicons dashicons-admin-post"></span>
    14351435                        <span class="post-option-title"><?php _ex( 'Format', 'post format' ); ?></span>
     
    14391439                <?php endif; ?>
    14401440
    1441                 <button type="button" class="button-reset post-option">
     1441                <button type="button" class="button-link post-option">
    14421442                    <span class="dashicons dashicons-category"></span>
    14431443                    <span class="post-option-title"><?php _e( 'Categories' ); ?></span>
     
    14451445                </button>
    14461446
    1447                 <button type="button" class="button-reset post-option">
     1447                <button type="button" class="button-link post-option">
    14481448                    <span class="dashicons dashicons-tag"></span>
    14491449                    <span class="post-option-title"><?php _e( 'Tags' ); ?></span>
     
    14541454            <?php if ( $supports_formats ) : ?>
    14551455                <div class="setting-modal is-off-screen is-hidden">
    1456                     <button type="button" class="button-reset modal-close">
     1456                    <button type="button" class="button-link modal-close">
    14571457                        <span class="dashicons post-option-back"></span>
    14581458                        <span class="setting-title" aria-hidden="true"><?php _ex( 'Format', 'post format' ); ?></span>
     
    14641464
    14651465            <div class="setting-modal is-off-screen is-hidden">
    1466                 <button type="button" class="button-reset modal-close">
     1466                <button type="button" class="button-link modal-close">
    14671467                    <span class="dashicons post-option-back"></span>
    14681468                    <span class="setting-title" aria-hidden="true"><?php _e( 'Categories' ); ?></span>
     
    14731473
    14741474            <div class="setting-modal tags is-off-screen is-hidden">
    1475                 <button type="button" class="button-reset modal-close">
     1475                <button type="button" class="button-link modal-close">
    14761476                    <span class="dashicons post-option-back"></span>
    14771477                    <span class="setting-title" aria-hidden="true"><?php _e( 'Tags' ); ?></span>
     
    14851485    <div class="press-this-actions">
    14861486        <div class="pressthis-media-buttons">
    1487             <button type="button" class="insert-media button-subtle" data-editor="pressthis">
     1487            <button type="button" class="insert-media button-link" data-editor="pressthis">
    14881488                <span class="dashicons dashicons-admin-media"></span>
    14891489                <span class="screen-reader-text"><?php _e( 'Add Media' ); ?></span>
     
    15031503                </div>
    15041504                <ul class="split-button-body">
    1505                     <li><button type="button" class="button-subtle draft-button split-button-option"><?php _e( 'Save Draft' ); ?></button></li>
    1506                     <li><button type="button" class="button-subtle standard-editor-button split-button-option"><?php _e( 'Standard Editor' ); ?></button></li>
    1507                     <li><button type="button" class="button-subtle preview-button split-button-option"><?php _e( 'Preview' ); ?></button></li>
     1505                    <li><button type="button" class="button-link draft-button split-button-option"><?php _e( 'Save Draft' ); ?></button></li>
     1506                    <li><button type="button" class="button-link standard-editor-button split-button-option"><?php _e( 'Standard Editor' ); ?></button></li>
     1507                    <li><button type="button" class="button-link preview-button split-button-option"><?php _e( 'Preview' ); ?></button></li>
    15081508                </ul>
    15091509            </div>
Note: See TracChangeset for help on using the changeset viewer.