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

[Fix]: Fixed Navbar dark mode navigation #1059

Merged
merged 13 commits into from
Dec 21, 2024

Conversation

officeneerajsaini
Copy link
Contributor

This Pull Request Fixes the Navbar Navigation Color in Dark mode.

Issue Number:

Screenshots/videos:
Before:

Screen.Recording.2024-10-24.at.10.51.20.AM.mov

After :

Screen.Recording.2024-10-24.at.10.52.49.AM.mov

@officeneerajsaini officeneerajsaini requested a review from a team as a code owner October 24, 2024 05:28
@officeneerajsaini
Copy link
Contributor Author

In macOS, I'm encountering another issue with the Navbar search button. The search button's style contains a background-color property.

@officeneerajsaini
Copy link
Contributor Author

Screenshot 2024-10-24 at 11 03 04 AM

Copy link

github-actions bot commented Oct 24, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview e7e3954

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7ecd915) to head (e7e3954).
Report is 70 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1059   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          373       373           
  Branches        94        94           
=========================================
  Hits           373       373           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dependabot bot and others added 2 commits October 24, 2024 11:49
Bumps [husky](https://github.com/typicode/husky) from 9.1.5 to 9.1.6.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v9.1.5...v9.1.6)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fixed navbar dark mode navigation

fixed

fixed
@officeneerajsaini
Copy link
Contributor Author

I'm sorry for making this pull request complex for the reviewer. Initially, I did my work well, but the package-lock.json and yarn.lock files were included. Then I made another commit, and I wanted to combine both commits into a single one. Due to some issues, I deleted my branch and then restored it. Now, I've combined both commits into one, but it also includes the previous merged commit. That's what has been happening with me.

@DhairyaMajmudar
Copy link
Member

I'm sorry for making this pull request complex for the reviewer. Initially, I did my work well, but the package-lock.json and yarn.lock files were included. Then I made another commit, and I wanted to combine both commits into a single one. Due to some issues, I deleted my branch and then restored it. Now, I've combined both commits into one, but it also includes the previous merged commit. That's what has been happening with me.

No worries with that just remove the changes from yarn.lock and package.json files.

@DhairyaMajmudar DhairyaMajmudar added the Hacktoberfest-accepted Pull requests accepted for Hacktoberfest'24 label Oct 24, 2024
@officeneerajsaini
Copy link
Contributor Author

I'm sorry for making this pull request complex for the reviewer. Initially, I did my work well, but the package-lock.json and yarn.lock files were included. Then I made another commit, and I wanted to combine both commits into a single one. Due to some issues, I deleted my branch and then restored it. Now, I've combined both commits into one, but it also includes the previous merged commit. That's what has been happening with me.

No worries with that just remove the changes from yarn.lock and package.json files.

Yeah I did 😄

@officeneerajsaini
Copy link
Contributor Author

The commit #1049 is also included in my pull request.

package.json Outdated Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
@officeneerajsaini
Copy link
Contributor Author

@DhairyaMajmudar Please Review Code now.

@DhairyaMajmudar
Copy link
Member

@officeneerajsaini pls. don't change the font colors

@officeneerajsaini
Copy link
Contributor Author

@officeneerajsaini pls. don't change the font colors

In dark mode, some light colors look better than a dark-on-dark combination.

Consistent color:

Screen.Recording.2024-10-25.at.11.26.19.AM.mov

Some Lightness :

Screen.Recording.2024-10-25.at.11.25.50.AM.mov

Should I go with the website theme color?

Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

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

Looks great, Thanks!!

However I do prefer the white color for the navbar fonts instead that light grey. Can we change that?

@officeneerajsaini
Copy link
Contributor Author

Screen.Recording.2024-10-30.at.5.46.20.PM.mov

@officeneerajsaini
Copy link
Contributor Author

@benjagm now take a look on code

@benjagm
Copy link
Collaborator

benjagm commented Nov 8, 2024

It looks better. However, the blue color is difficult to distinguish from the background. Can we find something lighter? Why not just underlying the current section instead of changing the color?

@officeneerajsaini
Copy link
Contributor Author

officeneerajsaini commented Nov 8, 2024

Screen.Recording.2024-11-08.at.4.18.13.PM.mov

Copy link
Member

Choose a reason for hiding this comment

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

It seems like this class is no longer used, if it is so you can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dhairya, I changed the grey color to white in response to Benjamin's request.

Looks great, Thanks!!

However I do prefer the white color for the navbar fonts instead that light grey. Can we change that?

I also added a new CSS property to show an underline on the current page, so some additional CSS properties need to be added. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This class is used when there are 6 community meetings, and events are available.

Without class :
Screenshot 2024-10-23 at 5 00 04 PM

with class :
Screenshot 2024-10-23 at 5 02 02 PM

Copy link
Member

Choose a reason for hiding this comment

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

Awsm! With that then keep it don't remove

@benjagm
Copy link
Collaborator

benjagm commented Nov 10, 2024

Hi everyone.

I checked the current version and found this behavior:

  • Light style:
    • Style looks good
    • When navigating using links in the header, all styles to highlight the current section work with the exception of Tools. When in tools there is no style in the header highlight the current version.
  • Drak Style:
    • When navigating using links in the header, the styles to highlight the current version don't work.

@officeneerajsaini
Copy link
Contributor Author

  • Light style:

    • Style looks good
    • When navigating using links in the header, all styles to highlight the current section work with the exception of Tools. When in tools there is no style in the header highlight the current version.

Yes , Found that part too .

@benjagm
Copy link
Collaborator

benjagm commented Nov 23, 2024

@officeneerajsaini we are very close! Let's make the last change and push it. Great work so far. Thanks for your patience.

@benjagm
Copy link
Collaborator

benjagm commented Dec 13, 2024

Hi @officeneerajsaini . Is there any update on this?

@officeneerajsaini
Copy link
Contributor Author

Hi @officeneerajsaini . Is there any update on this?

Screen.Recording.2024-12-13.at.7.28.53.PM.mov

I fixed the last issue related to the Tools navigation behaviour. This PR is now ready to merge.

Here’s a summary of what has been done in this PR:

  1. Fixed the active page underlining issue in Dark Mode.
  2. Resolved the issue where the active page was not showing correctly on the Tools page in both Light and Dark modes.

@benjagm
Copy link
Collaborator

benjagm commented Dec 13, 2024

Thanks @officeneerajsaini . Ok I think the reason why the preview deployment I checked is outdated is because the deployment work failed due to some format checks:

https://github.com/json-schema-org/website/actions/runs/11986321387/job/33419247261?pr=1059

Can you run prettier on that file? I am so looking forward to merge it.

thanks for your patience. It has been a very busy weeks for me on my new job.

@officeneerajsaini
Copy link
Contributor Author

@benjagm Yeah, I know you were very busy at that time, which is why I waited for your response.
I have done everything that was needed. On my local host, everything is working well, but in this preview development, I can't see the underlining navigation.

@officeneerajsaini
Copy link
Contributor Author

Now This Code Ready To Merge @benjagm Please take a Look.

Copy link
Collaborator

@benjagm benjagm left a comment

Choose a reason for hiding this comment

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

Thanks for the hard work Neeraj. I just added a small change to make it work. Kudos!

@benjagm benjagm merged commit 179a1d3 into json-schema-org:main Dec 21, 2024
8 of 9 checks passed
@officeneerajsaini
Copy link
Contributor Author

officeneerajsaini commented Dec 21, 2024

Thanks, Benja 🫠

@officeneerajsaini officeneerajsaini deleted the improvement branch December 21, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest-accepted Pull requests accepted for Hacktoberfest'24
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: Some Section need's Improvement
3 participants