-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[A11Y] Fixed: Increase contrast for "required" asterisk in all core themes. #5425
Comments
PRs filed for both options to compare and choose from: |
@klonos your fix works in Seven and Bartik, but not yet in Basis, which ships with a custom color definition in css/component/backdrop-form.css. Should be easy to fix. Re AA vs AAA - I could be wrong, but I think until now we were happy with AA. Both colors look OK, but I have a slight preference for #e60000, because the asterisk appears a little more prominent (more contrast to default text color). |
Thanks @indigoxela ...having a look now.
Yes, I also prefer |
...re Basis, should I change the value in https://github.com/backdrop/backdrop/blob/1.x/core/themes/basis/css/component/backdrop-form.css#L28, or simply remove the entire thing and allow the one set in core/modules/system/css/system.theme.css to take over? |
@klonos you have to change the value, because Basis does not load system.theme.css. Otherwise you end up with normal text color. |
Right, I missed that. Fixed in both PRs 👍🏼 Thanks @indigoxela 🙏🏼 |
I agree |
@klonos many thanks for the update, this works correctly now in Basis. 👍 We still have two PR, so marking as RTBC might not yet be appropriate. How much feedback do we need, to be able to decide? Currently 3 of 3 people prefer #e60000. |
4 of 4 now :-) |
I too prefer #e60000 |
Thank you guys 👍🏼 I guess we have enough feedback now 😅 |
Sure! Consent like that is rare. 😉 @klonos mind to close the second PR? The first one's RTBC then. |
Done 👍🏼 |
Merged backdrop/backdrop#3883 into 1.x and 1.20.x. Thanks @klonos and all the folks that provided feedback! |
This is a sibling issue to #5426, and part of the #5244 meta.
Current style is:
#FF0000
text color over#FAFAFA
background, which is AA for large text, but fails for normal size text.#FF0000
text color over#FFFFFF
background, which is AA for large text, but fails for normal size text.Making the text color
#E60000
would pass AA for Seven/Basis/Bartik (would make it AAA for large size text, and AA for normal size text).Making it
#AD0000
would pass AAA for Seven/Basis/Bartik, for both large and normal size text.The text was updated successfully, but these errors were encountered: