Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Comments

Close small menu when user clicks outside #1375#1379

Merged
Ismail-elkorchi merged 2 commits intoAutomattic:masterfrom
RonHolt:close-small-menu-on-click-outside
Apr 10, 2020
Merged

Close small menu when user clicks outside #1375#1379
Ismail-elkorchi merged 2 commits intoAutomattic:masterfrom
RonHolt:close-small-menu-on-click-outside

Conversation

@RonHolt
Copy link
Contributor

@RonHolt RonHolt commented Nov 8, 2019

Changes proposed in this Pull Request:

When small (mobile) menu is toggled open, this feature closes the menu when the user taps or clicks outside the #site-navigation container variable.

Related issue(s):

Fixes #1375

@currentcreative
Copy link

I'm sorry to ask a stupid question, but what does the notice mean that "all checks have failed"? here: https://travis-ci.org/Automattic/_s/builds/609127585?utm_source=github_status&utm_medium=notification

@philiparthurmoore
Copy link
Contributor

@currentcreative It means that there is either an error here or here. Basic sniffing that needs to be updated for the automated commit tests.

@philiparthurmoore
Copy link
Contributor

Or it means that there really is a code sniff problem that needs to be fixed by the committer.

@philiparthurmoore
Copy link
Contributor

2019-12-22_09-33-46

2019-12-22_09-33-23

@philiparthurmoore
Copy link
Contributor

Looks like the sniff files need to be updated.

@jrfnl
Copy link
Contributor

jrfnl commented Dec 22, 2019

@philiparthurmoore See #1311

Copy link
Contributor

@Ismail-elkorchi Ismail-elkorchi left a comment

Choose a reason for hiding this comment

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

Thank you @GitarMan for the work here. I've rebased the PR on master and changed the indentation from spaces to tabs to pass the WPCS tests.

Other than that, I tested this PR locally and it works as described.

@RonHolt
Copy link
Contributor Author

RonHolt commented Apr 12, 2020

Just saw all this, thanks for changing the indentation. Glad I was able to contribute!

@RonHolt RonHolt deleted the close-small-menu-on-click-outside branch April 12, 2020 01:53
@Ismail-elkorchi
Copy link
Contributor

It's all my pleasure @GitarMan 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking outside mobile navigation doesn't close it

5 participants