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

fix: Don’t use deprecated CSS properties in .sr-only #2710

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

smockle
Copy link
Member

@smockle smockle commented Sep 18, 2024

What are you trying to accomplish?

This PR replaces clip and word-wrap in the .sr-only class:

What approach did you choose and why?

This PR replaces deprecated and non-standard CSS properties with supported and standardized ones, in order to ensure the .sr-only class works as expected.

What should reviewers focus on?

Browser support for this PR’s replacement properties is good—all our supported browsers include them.

Do we have any tests that could ensure this change doesn’t visually regress?

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢

@smockle smockle requested a review from a team as a code owner September 18, 2024 16:20

This comment was marked as resolved.

@smockle smockle changed the title fix: Don’t use deprecated CSS properties in '.sr-only' fix: Don’t use deprecated CSS properties in .sr-only Sep 18, 2024
@jonrohan jonrohan merged commit 3017831 into main Sep 24, 2024
13 checks passed
@jonrohan jonrohan deleted the smockle/sr-only branch September 24, 2024 17:00
@primer primer bot mentioned this pull request Sep 24, 2024
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.

2 participants