Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Updated all of the offscreen classes and AccDC API processes to use a…
Browse files Browse the repository at this point in the history
… new offscreen class that includes clip-path plus white-space properties to account for new browser and AT support differences
  • Loading branch information
accdc committed Oct 18, 2016
1 parent 8902fde commit 84c21ae
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 35 deletions.

Large diffs are not rendered by default.

@@ -1,12 +1,12 @@
/*!
AccDC API - 3.2 for Dojo (01/25/2016)
AccDC API - 3.2 for Dojo (10/17/2016)
Copyright 2010-2016 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
define("dojo/acc.dc.api", ["./query!css3", "./on", "./ready", "./request", "./html", "./dom-construct", "./request/script"],
function(dojoQuery, dojoOn, dojoReady, dojoRequest, dojoHtml, dojoConst, dojoScript, undefined){

var accDCVersion = '3.2 (01/25/2016)',
var accDCVersion = '3.2 (10/17/2016)',
document = window.document,
accDC = {},

Expand Down Expand Up @@ -226,23 +226,25 @@ sraCSS = {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
clip: 'rect(1px, 1px, 1px, 1px)',
clipPath: 'inset(50%)',
padding: 0,
border: 0,
height: '1px',
width: '1px',
overflow: 'hidden',
zIndex: -1000
whiteSpace: 'nowrap'
},

sraCSSClear = function(o){
css(o, {
position: '',
clip: 'auto',
clipPath: 'none',
padding: '',
height: '',
width: '',
overflow: '',
zIndex: ''
whiteSpace: 'normal'
});
return o;
},
Expand Down
@@ -1,11 +1,11 @@
/*!
AccDC API - 3.2 for MooTools (01/25/2016)
AccDC API - 3.2 for MooTools (10/17/2016)
Copyright 2010-2016 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
(function($, undefined){

var accDCVersion = '3.2 (01/25/2016)',
var accDCVersion = '3.2 (10/17/2016)',
document = window.document,
accDC = {},

Expand Down Expand Up @@ -254,23 +254,25 @@ sraCSS = {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
clip: 'rect(1px, 1px, 1px, 1px)',
clipPath: 'inset(50%)',
padding: 0,
border: 0,
height: '1px',
width: '1px',
overflow: 'hidden',
zIndex: -1000
whiteSpace: 'nowrap'
},

sraCSSClear = function(o){
css(o, {
position: '',
clip: 'auto',
clipPath: 'none',
padding: '',
height: '',
width: '',
overflow: '',
zIndex: ''
whiteSpace: 'normal'
});
return o;
},
Expand Down

Large diffs are not rendered by default.

@@ -1,11 +1,11 @@
/*!
AccDC API - 3.2 for jQuery (01/25/2016)
AccDC API - 3.2 for jQuery (10/17/2016)
Copyright 2010-2016 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
(function(pL){

var accDCVersion = '3.2 (01/25/2016)',
var accDCVersion = '3.2 (10/17/2016)',

getEl = function(e){
if (document.getElementById) return document.getElementById(e);
Expand Down Expand Up @@ -203,23 +203,25 @@ sraCSS = {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
clip: 'rect(1px, 1px, 1px, 1px)',
clipPath: 'inset(50%)',
padding: 0,
border: 0,
height: '1px',
width: '1px',
overflow: 'hidden',
zIndex: -1000
whiteSpace: 'nowrap'
},

sraCSSClear = function(o){
css(o, {
position: '',
clip: 'auto',
clipPath: 'none',
padding: '',
height: '',
width: '',
overflow: '',
zIndex: ''
whiteSpace: 'normal'
});
return o;
},
Expand Down

Large diffs are not rendered by default.

@@ -1,11 +1,11 @@
/*!
AccDC API - 3.2 Standalone (01/25/2016)
AccDC API - 3.2 Standalone (10/17/2016)
Copyright 2010-2016 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
(function( window, undefined ) {

var accDCVersion = '3.2 (01/25/2016)',
var accDCVersion = '3.2 (10/17/2016)',
document = window.document,
accDC = {},

Expand Down Expand Up @@ -225,23 +225,25 @@ sraCSS = {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
clip: 'rect(1px, 1px, 1px, 1px)',
clipPath: 'inset(50%)',
padding: 0,
border: 0,
height: '1px',
width: '1px',
overflow: 'hidden',
zIndex: -1000
whiteSpace: 'nowrap'
},

sraCSSClear = function(o){
css(o, {
position: '',
clip: 'auto',
clipPath: 'none',
padding: '',
height: '',
width: '',
overflow: '',
zIndex: ''
whiteSpace: 'normal'
});
return o;
},
Expand Down

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion AccDC Technical Style Guide/AccDC Technical Style Guide.htm
Expand Up @@ -379,12 +379,13 @@ <h3 class="control"><button id="tgl-1-6">Offscreen Text</button></h3>
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
z-index: -1000;
white-space: nowrap;
}
</pre>
<p> This styling configuration is based on the research done by Thierry Koblentz, which is more fully described at
Expand Down
Expand Up @@ -311,13 +311,13 @@ nav h2, aside h2 {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: polygon(0px 0px, 0px 0px,0px 0px, 0px 0px);
clip-path: inset(50%);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
z-index: -1000;
white-space: nowrap;
}

nav li {list-style-type: none;}
Expand Down
4 changes: 2 additions & 2 deletions AccDC Technical Style Guide/_doc_files/css/global.css
Expand Up @@ -388,13 +388,13 @@ nav h2, aside h2 {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: polygon(0px 0px, 0px 0px,0px 0px, 0px 0px);
clip-path: inset(50%);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
z-index: -1000;
white-space: nowrap;
}

nav li {list-style-type: none;}
Expand Down
3 changes: 2 additions & 1 deletion Dependencies.txt
Expand Up @@ -48,12 +48,13 @@ To hide all contained elements and text from sighted users, while at the same ti
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
z-index: -1000;
white-space: nowrap;
}

This is referred to as Screen Reader Accessible Hidden Text or Off Screen Text, and will ensure that the element and all content within is invisible for sighted users, while at the same time keeping it visible to screen readers.
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
AccDC Technical Style Guide for jQuery (09/10/2016)
AccDC Technical Style Guide for jQuery (10/17/2016)
===

The AccDC Technical Style Guide is designed to provide reliable and consistent interaction designs that are accessible to the highest percentage of people possible, and to establish a baseline for Functional Accessibility that can be utilized, built upon, studied, and tested against.
Expand Down

0 comments on commit 84c21ae

Please sign in to comment.