From ca40c148c983bd5aa6bd65e7b605133433f78ad5 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 27 Mar 2018 12:18:04 -0800 Subject: [PATCH] rename parentContainerTagName --> containerTagName, https://github.com/phetsims/scenery/issues/748 --- js/MenuItem.js | 2 +- js/RadioButton.js | 2 +- js/accessibility/AccessibleNumberTweaker.js | 2 +- js/buttons/RadioButtonGroup.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/MenuItem.js b/js/MenuItem.js index c0be0543..a3cf6d54 100644 --- a/js/MenuItem.js +++ b/js/MenuItem.js @@ -64,7 +64,7 @@ define( function( require ) { // a11y tagName: 'button', focusAfterCallback: false, // whether or not next focusable element should receive focus after the callback - parentContainerTagName: 'li', + containerTagName: 'li', parentContainerAriaRole: 'none', // this is required for JAWS to handle focus correctly, see https://github.com/phetsims/john-travoltage/issues/225 accessibleLabel: text, ariaRole: 'menuitem' diff --git a/js/RadioButton.js b/js/RadioButton.js index cceb3122..cd079382 100644 --- a/js/RadioButton.js +++ b/js/RadioButton.js @@ -36,7 +36,7 @@ define( function( require ) { // a11y tagName: 'input', inputType: 'radio', - parentContainerTagName: 'li', + containerTagName: 'li', labelTagName: 'label', prependLabels: true, a11yNameAttribute: 'radioButton' diff --git a/js/accessibility/AccessibleNumberTweaker.js b/js/accessibility/AccessibleNumberTweaker.js index f882efeb..61a21972 100644 --- a/js/accessibility/AccessibleNumberTweaker.js +++ b/js/accessibility/AccessibleNumberTweaker.js @@ -73,7 +73,7 @@ define( function( require ) { timerInterval: 100, // fire continuously at this frequency (milliseconds), tagName: 'button', - parentContainerTagName: 'div', + containerTagName: 'div', ariaRole: 'spinbutton', prependLabels: true, focusable: true, diff --git a/js/buttons/RadioButtonGroup.js b/js/buttons/RadioButtonGroup.js index d38a7f6d..b638f777 100644 --- a/js/buttons/RadioButtonGroup.js +++ b/js/buttons/RadioButtonGroup.js @@ -200,7 +200,7 @@ define( function( require ) { if ( currentContent.accessibleLabel ) { opts.accessibleLabel = currentContent.accessibleLabel; opts.labelTagName = 'label'; - opts.parentContainerTagName = 'div'; + opts.containerTagName = 'div'; } // a11y create description for radio button