Skip to content

Tweak C39 and add new matching SCR40 #4404

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

patrickhlauke
Copy link
Member

@patrickhlauke patrickhlauke commented May 18, 2025

  • Tweak existing C39 to provide extended example, and improve the prose
  • Tweak 2.3.3 understanding
  • Create new SCR40 technique that checks prefers-reduced-motion via JavaScript
  • Add SCR40 to the changelogs

Closes #3931

Previews:

* wrap mention of `prefers-reduced-motion` in code tags
* improve explanation for C39
* add a defensive reduced motion use (checking for `no-preference`) example code
Copy link

netlify bot commented May 18, 2025

Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit 8ce77d2
🔍 Latest deploy log https://app.netlify.com/projects/wcag2/deploys/687a6dc911d4c9000855cc3e
😎 Deploy Preview https://deploy-preview-4404--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -1,5 +1,6 @@
<ol>
<li><time datetime="2025-04-22">2 Jun 2025</time>: Added {{ "G226" | linkTechniques }}</li>
<li><time datetime="2025-06-02">2 Jun 2025</time>: Added {{ "G226" | linkTechniques }}</li>
<li><time datetime="2025-05-19">19 May 2025</time>: Added {{ "SCR40" | linkTechniques }}</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update the 2 changelog files so SCR40 is the latest, and reflect when it's merged rather than when the PR was first written

(FWIW I have started working on a way to automate the entire Techniques Change Log; not sure which will get done first)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving this here as comment for whoever merges this eventually ... update the changelog dates

@@ -1,5 +1,6 @@
<ol>
<li><time datetime="2025-04-22">2 Jun 2025</time>: Added {{ "G226" | linkTechniques }}</li>
<li><time datetime="2025-05-19">19 May 2025</time>: Added {{ "SCR40" | linkTechniques }}</li>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bruce-usab
Copy link
Contributor

@gundulaniemann asked:

About the above question "the content can still appear or relocate instantaneously rather than gradually via an animation, right?"

My apologies, I am not finding where the question was first "asked above" and may be missing some context. Regardless, "content can still appear or relocate instantaneously" is not certain to fail an SC and does not seem obviously problematic on its face. OTOH, I did once have someone assert that supporting drag-and-drop meant failing SC 2.2.2 Pause, Stop, Hide. (I think their motivation was not wanting to do work to make their drag-and-drop keyboard accessible). I want to be a little cautious about answering "yes, right, that is correct".

Please keep asking your question until it is settled for you.

@gundulaniemann
Copy link
Contributor

@gundulaniemann asked:

About the above question "the content can still appear or relocate instantaneously rather than gradually via an animation, right?"

My apologies, I am not finding where the question was first "asked above" and may be missing some context. Regardless, "content can still appear or relocate instantaneously" is not certain to fail an SC and does not seem obviously problematic on its face. OTOH, I did once have someone assert that supporting drag-and-drop meant failing SC 2.2.2 Pause, Stop, Hide. (I think their motivation was not wanting to do work to make their drag-and-drop keyboard accessible). I want to be a little cautious about answering "yes, right, that is correct".

Please keep asking your question until it is settled for you.

The question was asked by kfranqueiro in his memo "two weeks ago".

@patrickhlauke
Copy link
Member Author

patrickhlauke commented Jul 14, 2025

I believe the concern about "if it moves at all, is that a failure" is now addressed (short answer: no, the SC only deals with motion animation - having in-between steps to create the illusion of motion; it doesn't say things aren't allowed to "jump" or move to another place) #4404 (comment)

@mbgower
Copy link
Contributor

mbgower commented Jul 18, 2025

Leaving for one more week for TF members to review. Will move to Ready for Revview then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide JavaScript example of code for detecting prefers-reduced-motion
6 participants