-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .show-for-sr and .show-on-focus classes and update docs, closes #…
- Loading branch information
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
doc/includes/visibility/examples_accessibility_hideforsr.html
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,14 @@ | ||
<div class="row"> | ||
<div class="large-6 columns"> | ||
<h4>HTML</h4> | ||
{{#markdown}} | ||
```html | ||
<p aria-hidden="true">This text can be seen, but won't be read by a screen reader.</p> | ||
``` | ||
{{/markdown}} | ||
</div> | ||
<div class="large-6 columns"> | ||
<h4>Rendered HTML</h4> | ||
<p aria-hidden="true">This text can be seen, but won't be read by a screen reader.</p> | ||
</div> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
doc/includes/visibility/examples_accessibility_showforsr.html
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,16 @@ | ||
<div class="row"> | ||
<div class="large-6 columns"> | ||
<h4>HTML</h4> | ||
{{#markdown}} | ||
```html | ||
<p class="show-for-sr">This text can only be read by a screen reader.</p> | ||
<p>There's a line of text above this one, you just can't see it.</p> | ||
``` | ||
{{/markdown}} | ||
</div> | ||
<div class="large-6 columns"> | ||
<h4>Rendered HTML</h4> | ||
<p class="show-for-sr">This text can only be read by a screen reader.</p> | ||
<p>There's a line of text above this one, you just can't see it.</p> | ||
</div> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
doc/includes/visibility/examples_accessibility_skiplinks.html
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,15 @@ | ||
<div class="row"> | ||
<div class="large-6 columns"> | ||
<h4>HTML</h4> | ||
{{#markdown}} | ||
```html | ||
<p><a class="show-on-focus" href="#mainContent">Skip to Content</a></p> | ||
<div id="mainContent"></div> | ||
``` | ||
{{/markdown}} | ||
</div> | ||
<div class="large-6 columns"> | ||
<h4>Rendered HTML</h4> | ||
<p><a class="show-on-focus" href="#">Skip to Content</a></p> | ||
</div> | ||
</div> |
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
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