-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Cub] - Color contrast ratio of some elements fail WCAG AA or AAA requirements #39
Comments
I have experimented with different colors and the following are my recommendations - For the large text, namely - remove-red-eye and preview-text elements - For the remaining elements which are body text (small text), |
Cub's Contraption has both dark and light modes. Different themes have different colors for almost all elements. The Preview text color should be changed directly where it is mentioned but for the body text, change the CSS variable |
@mmaismma I would like to work on this issue. Can you please guide me on what all changes do I need to make and in which file |
@Yashs911 Sure I would. Although this issue is already assigned to @moody2times, I think they are kind enough for you to work on this issue instead. He must have already done his research, so I would leave @moody2times as your mentor for this issue. He is a great person and I am sure you will enjoy his guidance. |
You are welcome to give it a go @Yashs911. I have already indicated the colors above and it seems @mmaismma approves. Just make sure to read the contributing guideline, it will show you the correct file to edit and how to do your commit. If you have any questions after that you can ask. Also, take a look at my research above and the hints @mmaismma gave and you should be ready to tackle it. All the best 😁 |
@moody2times I have made the changes in large text but for small text I didn't get the themeColor part can you please guide me |
Ok, good job. For the small text, we are working with css variables. The color for the small text are held in a variable named Just as you changed the large text by targeting the Although, I would like to hear how you solved the problem for the remove_red_eye element, since it has no selector in the css file. Perhaps, you should ask @mmaismma whether he would prefer inline styling for remove_red_eye element since it is just one property. OK, I hope this was helpful? Let me know if there are any further questions. Looking forward to your solution. All the best. |
@moody2times For large text I changed the color in #preview-text and it changed both red eye and preview color You are right. It was my mistake. Both elements can be targeted with the same |
Can I work on this? |
@srishtij2000 Why not? Everybody is welcome. Check our other issues too. |
So are you going to assign this issue or should si just submit the PR? |
@srishtij2000 I am working on this issue. |
@srishtij2000 Since Yash is already working on this issue, I would recommend you to work on another issue, preferably #23 or #42. |
Okay okay |
* 🆕Added info for submitting code in plain JS only * Changed Color to increase accessibility (fixes Hermit-Tools#39)
Describe the bug
The color contrast ratio between the background and foreground elements on the page do not meet the WCAG AA or AAA requirements. As such users with color blindness or some other similar conditions will have trouble differentiating between the background and foreground colors, which is bad user-experience.
To Reproduce
On a firefox browser, right click the page (Cub) and click on inspect elements. In the devtools, expand the tab and click accessibility and from the accessibility window, click on check for issues.
Expected behavior
The texts on the page should be legible to all users. To ensure legibility, the color contrast of the elements in the photo below should be adjusted to meet at least WCAG AA requirements. Read more about the guideline here
https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable/Color_contrast?utm_source=devtools&utm_medium=a11y-panel-checks-color-contrast
Browser information
Firefox v.8.0.1
Photo Description
The text was updated successfully, but these errors were encountered: