Hello! I have a solution to this step, but I wanted to ask a question. How are we expected to know the contrast ratio of the colors? So here it asks for a color with a contrast ratio of at least 7:1. How are we supposed to know which colors have that ratio? Thank you!
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Learn Accessibility by Building a Quiz - Step 45
that’s a good point because they are trying to teach accessibility but not really describing it much.
There’s also some inherit thinking bias in the exercise too. But all that aside,
I believe if you try something and it doesn’t work, the hints will re-direct.
(assuming that you have a base-knowledge of what color contrast means of course. Some people never studied art formally in school so they would have no clue)
Yeah I think that’s the problem with this question. Someone like me who doesn’t know anything about color contrast aside from its general definition would be stuck here. The hint unfortunately didn’t redirect, it just kept saying I need to add a color value. In any case, thank you for the clarification!
ah okay, when I tried it, i used blue then black and the hint told me to use a specific hex color
then just for fun i ignored the hint and used white and that worked
That’s so strange, my hint was completely different! Like I said, it said I needed to add a color property and that was legitimately it. It didn’t suggest anything else.
Oh, definitely. I’ve had so many similar experiences. I spoke to a close friend who’s been coding for several years and he basically made the same point as you. That it’s all about research. And not just the learning process. You’re not really ever expected to memorize anything, you just have to understand it and be able to do it. He said coding is always all about researching and consulting various sources.