WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/28/2016 07:53:07 PM (4 years ago)
Author:
afercia
Message:

Administration: Improve the usage of the button CSS classes.

Introduces some consistency in the usage of the button CSS classes, fixes the
focus style for accessibility and responsiveness of the buttons.

  • Adds the button class to all primary buttons make them responsive
  • Removes all secondary-button classes and replaces it with button when needed. button-secondary shouldn't be used and exists just for backward compatibility reasons
  • Replaces classes inside submit_button() with a shorthand for some buttons, and use an empty string for the default button class. Passing button is unnecessary
  • Adjusts get_submit_button() to remove empty items

Props iseulde, dimchik, chris_d2d, mhowell, afercia.
Fixes #27314, #37138, #37448.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r38489 r38672  
    620620
    621621        <p class="inline-edit-save submit">
    622             <button type="button" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></button>
    623             <button type="button" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></button>
     622            <button type="button" class="cancel button alignleft"><?php _e( 'Cancel' ); ?></button>
     623            <button type="button" class="save button button-primary alignright"><?php echo $tax->labels->update_item; ?></button>
    624624            <span class="spinner"></span>
    625625            <span class="error" style="display:none;"></span>
Note: See TracChangeset for help on using the changeset viewer.