-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Dashboard: DashboardGrid - don't animate if reduced-motion set #75540
Conversation
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
@tonypowa is there anyone available to triage this? |
routing PR to the dashboard squad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @dnwe 👋🏾 , thank you for contributing to Grafana :), this indeed is a good workaround for the original issue and also provides better accessibility.
The code looks good to me :), and testing locally also works as expected
P.S. Is it possible for you to update your branch with the latest main branch? |
Obey the prefers-reduced-motion [1] CSS media feature and only enable the react-grid movement animations if the user hasn't set any preference for reduced motion -- [1] https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
4b809cc
to
e723e71
Compare
@axelavargas thanks for the review! Branch re-based and pushed as requested |
Hey @dnwe 👋🏾 , can you re-sign the CLA? 🙈 for a strange reason now the CI is not reporting that status and it's required for the merge. Thank you for your patience with this one 🙏🏾 . |
Hmm, cla-assistant definitely reports it as signed for me when I click back through to https://cla-assistant.io/grafana/grafana?pullRequest=75540 (and it still shows in the comment #75540 (comment) above) — not sure why the |
This comment was marked as outdated.
This comment was marked as outdated.
Aha, I googled a bit and found I could open |
Oh, nice finding! Thank you 🥳 |
Thanks again for the review and testing |
What is this feature?
Obey the prefers-reduced-motion CSS media feature and only enable the react-grid movement animations if the user hasn't set any preference for reduced motion
Why do we need this feature?
Accessibility support to avoid vestibular motion triggers as well as better support for headless browser image capture.
Which issue(s) does this PR fix?:
Contributes-to: #74603 (provides a workaround to disable the animation)
Special notes for your reviewer:
Please check that: