Skip to content

Commit

Permalink
a11y instrumentation in RoundButtonView, removed from subtypes, see #459
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jan 23, 2019
1 parent 2055418 commit 1ee367d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
5 changes: 4 additions & 1 deletion js/buttons/RoundButtonView.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ define( function( require ) {
// on the button's state. This can be a stock strategy from this file,
// or custom. To create a custom one, model it off of the stock
// version(s) defined in this file.
contentAppearanceStrategy: RoundButtonView.FadeContentWhenDisabled
contentAppearanceStrategy: RoundButtonView.FadeContentWhenDisabled,

// a11y
tagName: 'button'
}, options );

Node.call( this );
Expand Down
5 changes: 1 addition & 4 deletions js/buttons/RoundPushButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ define( function( require ) {
function RoundPushButton( options ) {

options = _.extend( {
tandem: Tandem.required,

// a11y
tagName: 'button'
tandem: Tandem.required
}, options );

var self = this;
Expand Down
5 changes: 1 addition & 4 deletions js/buttons/RoundStickyToggleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ define( function( require ) {

options = _.extend( {
tandem: Tandem.required,
phetioType: ToggleButtonIO,

// a11y
tagName: 'button'
phetioType: ToggleButtonIO
}, options );

// @private (read-only)
Expand Down
5 changes: 1 addition & 4 deletions js/buttons/RoundToggleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ define( function( require ) {
// Tandem support
options = _.extend( {
tandem: Tandem.required,
phetioType: ToggleButtonIO,

// a11y
tagName: 'button'
phetioType: ToggleButtonIO
}, options );

// @private (read-only)
Expand Down

0 comments on commit 1ee367d

Please sign in to comment.