Open zepumph opened 6 years ago
@zepumph, button
is the better, more flexible and more modern choice. In its early days it had some styling issues with IE6. Those days are over.
I do not know what a RoundStickyToggleButton
is, but toggle behaviour can be created by using a button
element with the aria-pressed
attribute.
Agreed - button
is also more simple HTML and will require fewer options from the Accessibility trait.
I see 6 occurences in the project of inputType: 'button'
, should we fix these, or is it sometimes preferred to use this strategy, see:
Side note: Should we keep this in a11y tests even if we don't want to use input type buttons in the project, just to make sure we support it and nothing breaks?
From dev meeting, @jessegreenberg will take this on.
From https://github.com/phetsims/scenery/issues/748,
there are multiple places where we use both. I think we should decide which one is best. I think for the majority we use
tagName: "button"
, but, for example inRoundStickyToggleButton
, not always.Marking for dev meeting and tagging @terracoda @mbarlow12 @jessegreenberg for opinions on how to proceed (or if you think it doesn't matter to have the inconsistency).