Skip to content

Commit

Permalink
converted aria-labelled/describedby usages to new api, phetsims/scene…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 22, 2018
1 parent 35cc290 commit f9e623d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/john-travoltage/view/JohnTravoltageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,12 @@ define( function( require ) {
this.arm.model.angleProperty.link( updateDescription );
this.leg.model.angleProperty.link( updateDescription );

// the play area is described by the screen view description through aria-describedby
this.ariaDescriptionContent = AccessiblePeer.DESCRIPTION_SIBLING;
playAreaNode.setAriaDescribedByNode( this );
// the play area is described by the screen view's description sibling through aria-describedby
playAreaNode.addAriaDescribedbyAssociation( {
thisElementName: AccessiblePeer.PRIMARY_SIBLING,
otherNode: this,
otherElementName: AccessiblePeer.DESCRIPTION_SIBLING
} );

// debug lines, body and forceline
// borders are approximately 8px = radius of particle from physical body,
Expand Down

0 comments on commit f9e623d

Please sign in to comment.