Skip to content

Commit

Permalink
PARENT_CONTAINER --> CONTAINER_PARENT, #748
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 31, 2018
1 parent 63903e8 commit 30148dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions js/accessibility/Accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ define( function( require ) {
* which element of this node's accessible content will hold the aria-labelledby attribute.
*
* @public
* @param {string} content - 'LABEL|NODE|DESCRIPTION|PARENT_CONTAINER'
* @param {string} content - 'LABEL|NODE|DESCRIPTION|CONTAINER_PARENT'
*/
setAriaLabelledContent: function( content ) {
this._ariaLabelledContent = content;
Expand All @@ -1096,7 +1096,7 @@ define( function( require ) {
* a label string. See setAriaLabelledContent for more information.
*
* @public
* @return {string} - one of 'LABEL'|'DESCRIPTION'|'NODE'|'PARENT_CONTAINER'
* @return {string} - one of 'LABEL'|'DESCRIPTION'|'NODE'|'CONTAINER_PARENT'
*/
getAriaLabelledContent: function() {
return this._ariaLabelledContent;
Expand All @@ -1110,7 +1110,7 @@ define( function( require ) {
* value of the aria-labelledby attribute for another node when it is labelled by this one.
*
* @public
* @param {string} content - 'LABEL'|'DESCRIPTION'|'NODE'|'PARENT_CONTAINER'
* @param {string} content - 'LABEL'|'DESCRIPTION'|'NODE'|'CONTAINER_PARENT'
*/
setAriaLabelContent: function( content ) {
this._ariaLabelContent = content;
Expand Down Expand Up @@ -1165,7 +1165,7 @@ define( function( require ) {
* which element of this node's accessible content has the aria-describedby attribute.
*
* @public
* @param {string} content - 'LABEL|NODE|DESCRIPTION|PARENT_CONTAINER'
* @param {string} content - 'LABEL|NODE|DESCRIPTION|CONTAINER_PARENT'
*/
setAriaDescribedContent: function( content ) {
this._ariaDescribedContent = content;
Expand All @@ -1178,7 +1178,7 @@ define( function( require ) {
* association. Doesn't return a description, but a string describing wich of this node's accessible elements
* are described.
*
* @return {string} -'LABEL|NODE|DESCRIPTION|PARENT_CONTAINER'
* @return {string} -'LABEL|NODE|DESCRIPTION|CONTAINER_PARENT'
*/
getAriaDescribedContent: function() {
return this._ariaDescribedContent;
Expand All @@ -1192,7 +1192,7 @@ define( function( require ) {
* is described by this one. See setAriaLabelledBy for more information on aria-labelledby.
*
* @public
* @param {string} content - one of 'LABEL'|'DESCRIPTION'|'NODE'|'PARENT_CONTAINER'
* @param {string} content - one of 'LABEL'|'DESCRIPTION'|'NODE'|'CONTAINER_PARENT'
*/
setAriaDescriptionContent: function( content ) {
this._ariaDescriptionContent = content;
Expand Down
4 changes: 2 additions & 2 deletions js/accessibility/AccessiblePeer.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ define( function( require ) {
else if ( association === AccessiblePeer.DESCRIPTION ) {
htmlElement = this.descriptionSibling;
}
else if ( association === AccessiblePeer.PARENT_CONTAINER ) {
else if ( association === AccessiblePeer.CONTAINER_PARENT ) {
htmlElement = this.containerParent;
}

Expand All @@ -187,7 +187,7 @@ define( function( require ) {
NODE: 'NODE', // associate with all accessible content related to this peer
LABEL: 'LABEL', // associate with just the label content of this peer
DESCRIPTION: 'DESCRIPTION', // associate with just the description content of this peer
PARENT_CONTAINER: 'PARENT_CONTAINER' // associate with everything under the parent container element of this peer
CONTAINER_PARENT: 'CONTAINER_PARENT' // associate with everything under the container parent of this peer
} );

return AccessiblePeer;
Expand Down

0 comments on commit 30148dd

Please sign in to comment.