Merge pull request #11294 from edx/clrux/ac-323

Adjusting .sr mixins for NVDA/JAWS on Windows
This commit is contained in:
clrux
2016-01-25 11:53:11 -05:00
2 changed files with 24 additions and 16 deletions

View File

@@ -404,14 +404,18 @@
// +Content - Screenreader Text - Extend
// ====================
%cont-text-sr {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
// clip has been deprecated but is still supported
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
position: absolute;
margin: -1px;
height: 1px;
width: 1px;
border: 0;
padding: 0;
overflow: hidden;
// ensure there are spaces in sr text
word-wrap: normal;
}
// +Content - Text Wrap - Extend

View File

@@ -125,14 +125,18 @@
// extends -hidden elems - screenreaders
%text-sr {
border: 0;
clip: rect(1px 1px 1px 1px);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
// clip has been deprecated but is still supported
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
position: absolute;
margin: -1px;
height: 1px;
width: 1px;
border: 0;
padding: 0;
overflow: hidden;
// ensure there are spaces in sr text
word-wrap: normal;
}
// extends - ensures proper contrast for automated checkers