As a follow-up to #1806022: Views' text color does not have sufficient contrast, an asterisk that denotes a required field is styled in system.theme.css with

.marker, .form-required {
    color: red;
}

required.png

Comments

dead_arm’s picture

Status: Active » Needs review
StatusFileSize
new402 bytes

Moved from parent issue #1217044: Clean up the CSS for System module so it gets visibility.

Patch to change marker and form-required red to #ee0000. Passes WCAG AA on white.

sun’s picture

Can we keep the shorthand notation #e00, please? :)

RTBC with that adjustment.

dead_arm’s picture

StatusFileSize
new399 bytes
new70.25 KB
new69.93 KB
new40.31 KB

Re-rolled patch :)

Screenshots to show that the difference between the reds is basically imperceptible, but #f00 fails and #ee0 passes.

Reds:
f00-to-ee0.png

Test of #f00 on #fff:
f00-on-fff.png

Test of #ee0 on #fff:
ee0-on-fff.png

sun’s picture

Hah, you changed it to #ee0, which is ~beige ;) — can we quickly change it to #e00 and call this done? :)

andypost’s picture

Status: Needs review » Needs work
+++ b/core/modules/system/system.theme.css
@@ -123,7 +123,7 @@ input.form-radio {
-  color: #f00;
+  color: #ee0;

Should be #e00

jibran’s picture

StatusFileSize
new399 bytes

patch

jibran’s picture

Status: Needs work » Needs review

.

sun’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! :)

dead_arm’s picture

Argh! At least it's fixed now :)

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

Automatically closed -- issue fixed for 2 weeks with no activity.