Learn Accessibility by Building a Quiz - Step 67

“You should have one @media (prefers-reduced-motion: no-preference) rule.”

The above is the hint I was given and I have tried to enact it on the code below, but the code doesn’t seem to pass. Please how do i get it right?

* {
  scroll-behavior: smooth;
  @media (prefers-reduced-motion: no-preference);
}

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 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0

Challenge: Learn Accessibility by Building a Quiz - Step 67

Link to the challenge:

Look at the directions again. They say you need to " Wrap the style rule that sets scroll-behavior: smooth within an @media at-rule with the media feature prefers-reduced-motion having no-preference set as the value."

You are not doing this, at the moment you are only including the style inside the * selector. You need to wrap the * style inside the @media rule. Look at the media example it gives you in the challenge. That is how it should be structured

Wrap the style rule and the selector inside the media preference. Have a look at the code below →

@media (prefers-reduced-motion: no-preference){
*{
scroll-behavior: smooth;
}
}