-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Properly label the input, to improve accessibility, but visually hide it to maintain the design, which uses a placeholder to indicate use - Uses the hide content technique from The Accessibility Project: http://a11yproject.com/posts/how-to-hide-content/ - Fixes #415
- Loading branch information
Tyson Gach
committed
Jan 18, 2016
1 parent
6783d20
commit 032c7ee
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
@import "library/**/*"; | ||
@import "base/**/*"; | ||
@import "components/**/*"; | ||
@import "utilities/**/*"; |
8 changes: 8 additions & 0 deletions
8
app/assets/stylesheets/administrate/utilities/_visually-hidden.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.visually-hidden { | ||
@include size(1px); | ||
border: 0; | ||
clip: rect(1px, 1px, 1px, 1px); | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters