Skip to content

Commit 6b9a85c

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. Built from https://develop.svn.wordpress.org/trunk@37611
1 parent 43f876d commit 6b9a85c

File tree

6 files changed

+6
-32
lines changed

6 files changed

+6
-32
lines changed

wp-admin/css/edit-rtl.css

Lines changed: 0 additions & 13 deletions
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;

wp-admin/css/edit-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/css/edit.css

Lines changed: 0 additions & 13 deletions
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;

wp-admin/css/edit.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/edit-form-comment.php

Lines changed: 3 additions & 3 deletions
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">

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.6-alpha-37610';
7+
$wp_version = '4.6-alpha-37611';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)