-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Add white-space: nowrap to improve accessibility with long hidden content #1900
Add white-space: nowrap to improve accessibility with long hidden content #1900
Conversation
Should we set |
Yes you are right, slipped my mind. Added now! |
Maybe it would be better to revert back to |
Agreed. Let’s use |
Fixed that :) yes that makes more sense. |
@bekapod Can you squash those commits and clean up the commit message (short description on the first line and then detailed changes below?) |
Add white-space: nowrap to visuallyhidden class so screenreaders can interpret line feeds correctly. Add white-space: inherit to the focusable modifier so when focused the content appears as normal.
Done :) |
@roblarsen GH lets you squash and merge in the interface. Somewhat new feature (been around a few months), not sure if you noticed it. |
Thanks all! |
This prevents the accessible off-screen text from being smushed. See: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe and discussion here: h5bp/html5-boilerplate#1900
See: https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
This also relates to #1874