From ffe0c38dfa6035f1fe9422c14be8835893fb9df0 Mon Sep 17 00:00:00 2001 From: Jesse Date: Wed, 23 Dec 2015 16:37:18 -0700 Subject: [PATCH] Hide extraneous graphical content and the 'heartbeat' from screen readers, see issue #310 --- js/Sim.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/Sim.js b/js/Sim.js index 57f5c56a..e46390e9 100644 --- a/js/Sim.js +++ b/js/Sim.js @@ -307,6 +307,7 @@ define( function( require ) { var simDiv = sim.display.domElement; simDiv.id = 'sim'; + simDiv.setAttribute( 'aria-hidden', true ); // hide div from screen readers (a11y) document.body.appendChild( simDiv ); // for preventing Safari from going to sleep. see https://github.com/phetsims/joist/issues/140 @@ -320,6 +321,7 @@ define( function( require ) { heartbeatDiv.style.width = '0'; heartbeatDiv.style.height = '0'; heartbeatDiv.style.clip = 'rect(0,0,0,0)'; + heartbeatDiv.setAttribute( 'aria-hidden', true ); // hide div from screen readers (a11y) document.body.appendChild( heartbeatDiv ); if ( phet.chipper.getQueryParameter( 'sceneryLog' ) ) {