Skip to content

Commit

Permalink
documentation for root edge case, see #852
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Aug 28, 2018
1 parent f888972 commit 892c4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/accessibility/AccessiblePeer.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ define( function( require ) {
// interacted with.
this.disposed = false;

// edge case for root accessibility
// edge case for root accessibility, which is passed in through options for some reason
if ( options.primarySibling ) {

// @private {HTMLElement} - The main element associated with this peer. If focusable, this is the element that gets
// the focus. It also will contain any children.
this._primarySibling = options.primarySibling;

// if testing mobile a11y, give the primary sibling style attributes to support transforming the HTML'
// if testing mobile a11y, give the root primary sibling style attributes to support transforming the HTML'
if ( window.phet && phet.chipper.queryParameters.mobileA11yTest ) {

// root is relatively styled so that descendants can be positioned absolutely
Expand Down

0 comments on commit 892c4bf

Please sign in to comment.