Skip to content
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

Button: The Saving animation doesn't respect prefers-reduced-motion #55545

Closed
afercia opened this issue Oct 23, 2023 · 1 comment · Fixed by #55547
Closed

Button: The Saving animation doesn't respect prefers-reduced-motion #55545

afercia opened this issue Oct 23, 2023 · 1 comment · Fixed by #55547
Assignees
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Oct 23, 2023

Description

Various buttons in the editor display an animation when saving.

This animation doesn't respect the OS-level "Reduce Motion" user preference.

I'm marking this issue as high priority as the speific animation in use is ery close to a 'flashing colors' effect that could trigger seizure. This animation is pontentially dangerous for WordPress users and should be fixed soon.

I'm not going to attach animated GIFs to illustrate the animation, as they could be potentially dangerous for users reading this GitHub issue. I'll attach a fre static images:

gray low contrast

blue

Screenshot 2023-10-23 at 14 24 52

Additionally, the gray 'saving' button clearly has an insufficient color contrast ratio.

Step-by-step reproduction instructions

  • Enable the 'Reduce motion' preference in your operaring system.
  • Edit a post.
  • Click the Update button.
  • See the button grradient animation runs, despite the 'Reduce motion' preference.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@afercia afercia added [Type] Bug An existing feature does not function as intended [Priority] High Used to indicate top priority items that need quick attention [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). labels Oct 23, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 23, 2023
@afercia
Copy link
Contributor Author

afercia commented Oct 23, 2023

For reference, the gray button insufficient color contrast ratio is as follows:

text color: #949494
first background gradient color: #fafafa
Contrast Ratio: 2.91:1

text color: #949494
second background gradient color: #e0e0e0
Contrast Ratio: 2.3:1

The text color is inherited from .edit-site-save-hub.

@afercia afercia changed the title Buttons: The Saving animation doesn't respect prefers-reduced-motion Button: The Saving animation doesn't respect prefers-reduced-motion Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Priority] High Used to indicate top priority items that need quick attention [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant