Skip to content

Commit 29a4bc3

Browse files
author
afercia
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37611 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fcc9bca commit 29a4bc3

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/wp-admin/css/edit.css

-13
Original file line numberDiff line numberDiff line change
@@ -634,19 +634,6 @@ span.wp-media-buttons-icon:before {
634634
max-width: 100%;
635635
}
636636

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;
648-
}
649-
650637
.ie8 #poststuff .inside #parent_id,
651638
.ie8 #poststuff .inside #page_template {
652639
width: 250px;

src/wp-admin/edit-form-comment.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282

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

9090
<div class="misc-pub-section curtime misc-pub-curtime">

0 commit comments

Comments
 (0)