-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Resolve .hide/.hidden/.sr-only redundancy/confusion #10446
Comments
Historically, screen readers have sometimes ignored http://a11yproject.com/posts/how-to-hide-content/ |
I propose deprecating |
You might consider using
|
We generally have a policy of avoiding attribute selectors when possible, for performance reasons. |
I see, besides standardizing markup I thought maybe attribute selectors might be a performance boost, per this post: http://stackoverflow.com/a/18116119
|
We meant the performance of the "style engine"/renderer, not JS. |
.hide
&.sr-only
both have the same final effect..hide
&.hidden
have confusingly similar names, but do slightly different things.Visibility table:
.hidden
// Hide from screenreaders and browsers
.hide
display: none !important;
.sr-only
// Only display content to screen readers
The text was updated successfully, but these errors were encountered: