From 4cb1f425a2011cbbafbd81a65f39c57a69bc1fad Mon Sep 17 00:00:00 2001 From: zepumph Date: Sun, 8 Apr 2018 11:17:01 -0800 Subject: [PATCH] add labels back in because it isn't the default, https://github.com/phetsims/scenery/issues/759, https://github.com/phetsims/scenery/issues/753 --- js/common/view/AlphaParticlePropertiesPanel.js | 2 ++ js/rutherfordatom/view/AtomPropertiesPanel.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/js/common/view/AlphaParticlePropertiesPanel.js b/js/common/view/AlphaParticlePropertiesPanel.js index e207d66..2e5a503 100644 --- a/js/common/view/AlphaParticlePropertiesPanel.js +++ b/js/common/view/AlphaParticlePropertiesPanel.js @@ -215,6 +215,7 @@ define( function( require ) { shiftKeyboardStep: 1, pageKeyboardStep: 10, labelContent: energyString, + labelTagName: 'label', descriptionTagName: 'p', descriptionContent: energySliderDescriptionString, appendDescription: true @@ -243,6 +244,7 @@ define( function( require ) { // a11y labelContent: tracesString, + labelTagName: 'label', descriptionTagName: 'p', descriptionContent: traceCheckboxDescriptionString, containerTagName: 'div' diff --git a/js/rutherfordatom/view/AtomPropertiesPanel.js b/js/rutherfordatom/view/AtomPropertiesPanel.js index 34eff34..b2c2a11 100644 --- a/js/rutherfordatom/view/AtomPropertiesPanel.js +++ b/js/rutherfordatom/view/AtomPropertiesPanel.js @@ -289,6 +289,7 @@ define( function( require ) { // a11y labelContent: protonsValuePatternString, + labelTagName: 'label', descriptionTagName: 'p', descriptionContent: protonSliderDescriptionString, containerTagName: 'div' @@ -343,6 +344,7 @@ define( function( require ) { // a11y labelContent: neutronsValuePatternString, + labelTagName: 'label', descriptionTagName: 'p', descriptionContent: neutronSliderDescriptionString, containerTagName: 'div'