From 7653b283cc686dcb49f58c481508b6bc874d7a42 Mon Sep 17 00:00:00 2001 From: zepumph Date: Sat, 31 Mar 2018 11:51:24 -0800 Subject: [PATCH] rename accessibleDescription --> descriptionContent, remove description 'AsHTML' method, https://github.com/phetsims/scenery/issues/752 --- js/ohms-law/view/ControlPanel.js | 2 +- js/ohms-law/view/FormulaNode.js | 2 +- js/ohms-law/view/WireBox.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ohms-law/view/ControlPanel.js b/js/ohms-law/view/ControlPanel.js index f202408..eb0fcb2 100644 --- a/js/ohms-law/view/ControlPanel.js +++ b/js/ohms-law/view/ControlPanel.js @@ -169,7 +169,7 @@ define( function( require ) { prependLabels: true, tagName: 'ul', labelContent: sliderControlsString, - accessibleDescription: slidersDescriptionString + descriptionContent: slidersDescriptionString } ); content.setAriaLabelledByNode( content ); diff --git a/js/ohms-law/view/FormulaNode.js b/js/ohms-law/view/FormulaNode.js index 24bd0cd..7b8013c 100644 --- a/js/ohms-law/view/FormulaNode.js +++ b/js/ohms-law/view/FormulaNode.js @@ -51,7 +51,7 @@ define( function( require ) { // a11y labelContent: ohmsLawEquationString, - accessibleDescriptionAsHTML: ohmsLawDefinitionString, + descriptionContent: ohmsLawDefinitionString, tagName: 'div', labelTagName: 'h3', prependLabels: true, // labels should come before other child content diff --git a/js/ohms-law/view/WireBox.js b/js/ohms-law/view/WireBox.js index 2e45155..3231aa6 100644 --- a/js/ohms-law/view/WireBox.js +++ b/js/ohms-law/view/WireBox.js @@ -49,7 +49,7 @@ define( function( require ) { tagName: 'ul', labelTagName: 'h3', labelContent: circuitLabelString, - accessibleDescriptionAsHTML: circuitDescriptionString, + descriptionContent: circuitDescriptionString, prependLabels: true } ); var self = this;