Make WordPress Core


Ignore:
Timestamp:
09/17/2016 03:38:40 PM (8 years ago)
Author:
afercia
Message:

Accessibility: Standardize the remove/delete/cancel links in the Menus screen and Publish meta boxes.

The submitdelete CSS class is used in various places across the admin for some
"red" action links. It is worth simplifying this rule for further improvements
related to color contrast.

  • simplifies a non-standard styling for the "Remove/Cancel" links in the Menus screen
  • underlines all the "Move to trash/Delete" red links in all the Publish meta boxes
  • fixes CSS classes usage for all the Publish meta boxes primary buttons
  • fixes broken layout for the old Link Manager publish meta box

Props karmatosed, hugobaeta, monikarao, afercia.
Fixes #37969, #37018. See #37448, #37138, #27314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r38590 r38616  
    253253        if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    254254        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    255         <?php submit_button( __( 'Schedule' ), 'primary button-large', 'publish', false ); ?>
     255        <?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
    256256<?php   else : ?>
    257257        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
    258         <?php submit_button( __( 'Publish' ), 'primary button-large', 'publish', false ); ?>
     258        <?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?>
    259259<?php   endif;
    260260    else : ?>
    261261        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
    262         <?php submit_button( __( 'Submit for Review' ), 'primary button-large', 'publish', false ); ?>
     262        <?php submit_button( __( 'Submit for Review' ), 'primary large', 'publish', false ); ?>
    263263<?php
    264264    endif;
     
    335335        <span class="spinner"></span>
    336336        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" />
    337         <input name="save" type="submit" class="button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
     337        <input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
    338338    </div>
    339339    <div class="clear"></div>
     
    910910<div id="publishing-action">
    911911<?php if ( !empty($link->link_id) ) { ?>
    912     <input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Update Link' ) ?>" />
     912    <input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update Link' ) ?>" />
    913913<?php } else { ?>
    914     <input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Add Link' ) ?>" />
     914    <input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Add Link' ) ?>" />
    915915<?php } ?>
    916916</div>
Note: See TracChangeset for help on using the changeset viewer.