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

Add white-space: nowrap to improve accessibility with long hidden content #1900

Merged
merged 1 commit into from
Oct 21, 2016
Merged

Add white-space: nowrap to improve accessibility with long hidden content #1900

merged 1 commit into from
Oct 21, 2016

Conversation

bekapod
Copy link
Contributor

@bekapod bekapod commented Oct 13, 2016

@slavanga
Copy link
Contributor

Should we set white-space: normal on .visuallyhidden.focusable to reset this?

@bekapod
Copy link
Contributor Author

bekapod commented Oct 13, 2016

Yes you are right, slipped my mind. Added now!

@jsfi
Copy link

jsfi commented Oct 14, 2016

Maybe it would be better to revert back to white-space: inherit so it respects the white-space setting of the parent?

@mathiasbynens
Copy link
Member

Agreed. Let’s use white-space: inherit instead for .visuallyhidden.focusable. @bekapod, would you mind updating the patch?

@bekapod
Copy link
Contributor Author

bekapod commented Oct 17, 2016

Fixed that :) yes that makes more sense.

@roblarsen
Copy link
Member

@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.
@bekapod
Copy link
Contributor Author

bekapod commented Oct 21, 2016

Done :)

@QWp6t
Copy link
Contributor

QWp6t commented Oct 21, 2016

@roblarsen GH lets you squash and merge in the interface. Somewhat new feature (been around a few months), not sure if you noticed it.

@roblarsen roblarsen merged commit 2f9d2a4 into h5bp:master Oct 21, 2016
@roblarsen
Copy link
Member

Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants