Skip to content

[Gallery Block]: A11y - Add and Update missing reduce-motion mixing - mostly depreciated #68415

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Conversation

Mayank-Tripathi32
Copy link
Contributor

Part of #68282

Considerations

The code is largely deprecated, so I'm unsure if this PR is necessary, especially since we might be cleaning up the CSS soon.

What?

Refactors animation and transition styles to use @media not (prefers-reduced-motion) for improved accessibility, ensuring a better experience for users who prefer reduced motion.

Why?

Currently, many parts of the codebase do not consider users' motion preferences, which may not be ideal for those with reduced motion settings. This PR addresses and fixes that issue.

How?

This PR updates the old reduce-motion mixin implementation and addresses missing cases to adopt the new approach outlined in the parent issue.

	@media not ( prefers-reduced-motion ) {
			transition: opacity 0.1s linear;
		}

Standard adopted from @wordpress/components

@github-actionsGitHub Actions
Copy link

-actions bot commented Dec 30, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on , copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Mayank-Tripathi32 <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano
Copy link
Contributor

Closing as a duplicate of #68315.

@t-hamanot-hamano closed this Jan 2, 2025
@t-hamanot-hamano added [Type] Code QualityIssues or PRs that relate to code quality[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Package] Block library/packages/block-librarylabels Jan 2, 2025
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
[Package] Block library/packages/block-library[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Type] Code QualityIssues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants