From a0ded4e7ca08e626ab48f9a99b327ef475eb535f Mon Sep 17 00:00:00 2001 From: Michael Barlow Date: Mon, 2 Oct 2017 14:30:01 -0600 Subject: [PATCH] Keep disabled StepButtons in the a11y focus order, see https://github.com/phetsims/molecules-and-light/issues/157 --- js/buttons/StepButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/buttons/StepButton.js b/js/buttons/StepButton.js index df544413d..85375a1e2 100644 --- a/js/buttons/StepButton.js +++ b/js/buttons/StepButton.js @@ -79,8 +79,8 @@ define( function( require ) { var playingObserver = function( playing ) { self.enabled = !playing; - // a11y - self.focusable = !playing; + // a11y note: we do not alter the focusability of such buttons. They should always be in the accessible + // order. }; options.playingProperty.link( playingObserver ); }