Skip to content
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

Adds the ability to close when clicking anywhere outside the modal without an overlay #59

Merged

Conversation

kellyselden
Copy link
Contributor

The result of #55. The use case is treating the modal as a glorified tooltip where it not necessarily the focus of attention, nor the center of the screen. Now you can have the functionality of clicking off closes, while retaining mouse effects like link hovering/clicking and other hover effects.

@@ -25,7 +25,7 @@ export default function registerAssertHelpers() {
message = message || 'Dialog triggered by ' + options.openSelector + ' failed to open and close';
var dialogContent = [dialogSelector, ':contains(' + options.dialogText + ')'].join('');
var self = this;
return click(options.openSelector).then(function() {
return click(options.openSelector, options.context).then(function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These options.context lines are a result of #58 to test the dialogCloseSelector while using tether.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chrislopresto
Copy link
Contributor

@kellyselden Could you please fix the one comment (above) and rebase when you have the chance? Things should go green. Thanks.

@kellyselden kellyselden force-pushed the click-out-closes-without-overlay branch from 1f85798 to 7700836 Compare July 27, 2015 17:44
@kellyselden kellyselden force-pushed the click-out-closes-without-overlay branch from 7700836 to ec78a89 Compare July 27, 2015 17:48
@kellyselden
Copy link
Contributor Author

@chrislopresto all should be good now.

lukemelia added a commit that referenced this pull request Aug 2, 2015
Adds the ability to close when clicking anywhere outside the modal without an overlay
@lukemelia lukemelia merged commit 17b4247 into yapplabs:master Aug 2, 2015
@lukemelia
Copy link
Contributor

Thanks @kellyselden!

@kellyselden kellyselden deleted the click-out-closes-without-overlay branch August 2, 2015 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants