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

[UI] Fix Navbar not closing on click getting started in mobile view #1889

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hymmns
Copy link

@hymmns hymmns commented Aug 27, 2024

Description

This PR fixes #1888

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link

welcome bot commented Aug 27, 2024

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Newcomers' Guide and sure to join the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for mesheryio-preview ready!

Name Link
🔨 Latest commit ce9e154
🔍 Latest deploy log https://app.netlify.com/sites/mesheryio-preview/deploys/66d3b9e1c3779d00087ab4db
😎 Deploy Preview https://deploy-preview-1889--mesheryio-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Gemfile.lock Outdated
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x64-mingw-ucrt)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for these changes?

Copy link
Member

Choose a reason for hiding this comment

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

@hymmns revert these changes.

@amitamrutiya
Copy link
Contributor

It would also be good to keep the animation we already have when closing the navbar menu.

@hymmns
Copy link
Author

hymmns commented Aug 27, 2024

Ok thanks @amitamrutiya
Will get on it as soon as I can

Gemfile.lock Outdated
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x64-mingw-ucrt)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
Copy link
Member

Choose a reason for hiding this comment

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

@hymmns revert these changes.

</nav>
<script>
Copy link
Member

Choose a reason for hiding this comment

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

move the js script to javascript file not in html file.Keep things seaparate

@hymmns hymmns force-pushed the hymmns/issue#1888 branch 2 times, most recently from 912ac85 to 62f6082 Compare August 29, 2024 21:28
js/stellarnav.js Outdated
Comment on lines 202 to 203
toggleMenu(e);
window.location.href = e.target.href;
Copy link
Author

Choose a reason for hiding this comment

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

I'm not certain why e.preventDefault() was originally added, so to avoid causing any breaking changes, I introduced window.location.href = e.target.href to ensure navigation to the intended URL works

@hymmns
Copy link
Author

hymmns commented Aug 29, 2024

@amitamrutiya and @sudhanshutech does this address your comments

@amitamrutiya
Copy link
Contributor

Whoa @hymmns, you did an excellent job! One more request: if you can figure out how to do this, could you please add a smooth scrolling effect when we press the "Getting Started" button, regardless of the screen size?

@amitamrutiya
Copy link
Contributor

I found an issue in your deploy preview URL: when I press the "Getting Started" button on a large screen, all of the header options disappear.

@Ashparshp
Copy link

@hymmns, Thank you for your contribution! Let's discuss this during the website call on Monday at 5:30 PM IST (7:00 AM CT). Please consider adding it as an agenda item to the meeting minutes || meeting link.

@hymmns
Copy link
Author

hymmns commented Aug 31, 2024

@amitamrutiya, I have made the changes as requested.

@Ashparshp
Copy link

@hymmns, Join slack please.

@hymmns
Copy link
Author

hymmns commented Sep 1, 2024

Thanks for the invite @Ashparshp

@Ashparshp
Copy link

@hymmns,

Thank you for your contribution! Let's discuss this during the website call on Monday at 5:30 PM IST (7:00 AM CT). Please consider adding it as an agenda item to the meeting minutes || meeting link.

@Ashparshp
Copy link

@hymmns, I'm have added this as an agenda item to the meeting minutes. Please join the evening call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Navbar is not closing on click getting started in mobile view
4 participants