Make WordPress Core

Changeset 37611


Ignore:
Timestamp:
06/01/2016 05:50:50 PM (7 years ago)
Author:
afercia
Message:

Accessibility: improve the color contrast in the Edit Comment "Status" box.

The current orange and red used for the radio button labels in the Edit Comment
"Status" box don't have a sufficient color contrast ratio with the background.
Removing the colors improves accessibility and consistency.

See #35659, #35622.
Fixes #36967.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r37607 r37611  
    633633#poststuff .inside #page_template {
    634634    max-width: 100%;
    635 }
    636 
    637 #poststuff .inside label.spam,
    638 #poststuff .inside label.deleted {
    639     color: red;
    640 }
    641 
    642 #poststuff .inside label.waiting {
    643     color: orange;
    644 }
    645 
    646 #poststuff .inside label.approved {
    647     color: green;
    648635}
    649636
  • trunk/src/wp-admin/edit-form-comment.php

    r37488 r37611  
    8383<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
    8484<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
    85 <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
    86 <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
    87 <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
     85<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
     86<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
     87<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
    8888</fieldset>
    8989
Note: See TracChangeset for help on using the changeset viewer.