Skip to content

Commit

Permalink
add UTTERANCE_QUEUE to configs, move tests over to utterance-queue re…
Browse files Browse the repository at this point in the history
…po, convert usages to use the library, not the scenery-phet ones, delete those, phetsims/utterance-queue#2
  • Loading branch information
zepumph committed Oct 22, 2019
1 parent 4ff6c2a commit 65dbf28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/how-to-make-a-sim-pdom-accessible.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ To implement PDOM descriptions, follow these thoughts:
changes. For PDOM accessibility, the word "alerts" means aria-live support via `UtteranceQueue`.

```js
const utteranceQueue = require( 'SCENERY_PHET/accessibility/utteranceQueue' );
const utteranceQueue = require( 'UTTERANCE_QUEUE/utteranceQueue' );
utteranceQueue.addToBack( 'Speak this now'); // This will immediately sent this string to the screen reader to speak.

// This is the same as wrapping a string inside an Utterance
const Utterance = require( 'SCENERY_PHET/accessibility/Utterance' );
const Utterance = require( 'UTTERANCE_QUEUE/Utterance' );
utteranceQueue.addToBack( new Utterance( { alert: 'Speak this now' } ) );
```
* A variety of features for advanced use has been built into `Utterance`. For example it is possible to loop through,
Expand Down

0 comments on commit 65dbf28

Please sign in to comment.