Skip to content

Commit 2417377

Browse files
committed
Merge pull request #281 from edx/talbs/update-text-sr-utility
FEDX-19: Updating a11y-based "sr" Utilities
2 parents 3573048 + 0d3ece3 commit 2417377

16 files changed

+71
-50
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Nothing yet
55

66
- - -
77

8+
## 0.9.2 (2016-02-01)
9+
* modernizing '%a11y-hide' and 'sr-only' utilities
10+
11+
- - -
12+
813
## 0.9.1 (2016-02-01)
914
* introduce $pattern-library-path variable
1015
* FIX - always refer to edx-icons via $edx-icons-font-path

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edx-pattern-library",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"authors": [
55
"edX UX Team <[email protected]>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "edx-pattern-library",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"author": "edX UX Team <[email protected]>",
55
"license": "Apache-2.0",
66
"description": "The (working) Visual, UI, and Front End Styleguide for edX Apps",

pattern-library/css/edx-pattern-library-ltr.css

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pattern-library/css/edx-pattern-library-ltr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pattern-library/css/edx-pattern-library-rtl.css

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pattern-library/css/edx-pattern-library-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pattern-library/sass/global/_helpers.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,18 @@
5454

5555
// accessibility
5656
%a11y-hide {
57-
border: 0;
58-
clip: rect(0 0 0 0);
59-
height: 1px;
60-
margin: -1px;
61-
overflow: hidden;
62-
padding: 0;
57+
// clip has been deprecated but is still supported
58+
clip: rect(1px 1px 1px 1px);
59+
clip: rect(1px, 1px, 1px, 1px);
6360
position: absolute;
61+
margin: -1px;
62+
height: 1px;
6463
width: 1px;
64+
border: 0;
65+
padding: 0;
66+
overflow: hidden;
67+
// ensure there are spaces in sr text
68+
word-wrap: normal;
6569
}
6670

6771
%a11y-hide-image-text {

public/css/demo-ltr.css

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/demo-ltr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)