-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should Dialog have a "tapToClose" option? #427
Comments
No, I don't think this should be support by Dialog. Standard behavior should be: Yes, I would remove this feature from MAL. |
I also vote to remove this, I think it is odd to close a dialog by clicking inside of it. But I see those exact lines in FluorescentCellsPictureDialog (gene-expression-essentials), AboutDialog, UpdateDialog, and EnergyGraphNode (MAS), so it should be removed from all of those. @ariel-phet are you OK with removing this from all of those dialogs? |
@jessegreenberg I am OK with removing from all those dialogs |
OK, this has been removed from the Dialogs mentioned in #427 (comment). @samreid is there anything more to do for this issue? |
@jessegreenberg what's this occurrence in KeyboardHelpDialog? I'm not familiar with "click": // @private (a11y) - input listener for the close button, must be disposed
var clickListener = {
click: function() {
self.hide();
self.focusActiveElement();
}
};
this.addInputListener( clickListener ); |
@pixelzoom I found 2 more occurrences like this in Equality Explorer: in OopsDialog and InfoDialog: // Click anywhere on the dialog to hide it.
this.addInputListener( new ButtonListener( {
fire: function() { self.hide(); }
} ) ); Would you like me to remove them? Also a heads-up that |
Remove from Equality Explorer in the above commit. |
Thanks @samreid, removed #427 (comment). |
Looks great, thanks! I can't find any other occurrences of this pattern, closing. |
During phetsims/molecules-and-light#185 @zepumph and I noticed that Molecules and Light has a feature where tapping the dialog dismisses it:
Should this feature be in SUN/Dialog? Alternatively, should we remove this feature from Molecules and Light?
The text was updated successfully, but these errors were encountered: