Skip to content

Commit

Permalink
scenery-phet patch for phetsims/utterance-queue#16
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Feb 22, 2021
1 parent e52f8b7 commit a49bdc0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions js/accessibility/ariaHerald.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ define( require => {
// modules
const AccessibilityUtil = require( 'SCENERY/accessibility/AccessibilityUtil' );
const Emitter = require( 'AXON/Emitter' );
const platform = require( 'PHET_CORE/platform' );
const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
const timer = require( 'AXON/timer' );

Expand Down Expand Up @@ -133,9 +134,15 @@ define( require => {
// https://github.com/phetsims/scenery-phet/issues/491
timer.setTimeout( () => {

// Using `hidden` rather than clearing textContent works better on mobile VO,
// see https://github.com/phetsims/scenery-phet/issues/490
liveElement.hidden = true;
if ( platform.safari ) {

// Using `hidden` rather than clearing textContent works better on mobile VO,
// see https://github.com/phetsims/scenery-phet/issues/490
liveElement.hidden = true;
}
else {
liveElement.textContent = '';
}
}, 200 );
}, 0 );
}
Expand Down

0 comments on commit a49bdc0

Please sign in to comment.