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

BUG: NavLink Highlight Does Not Update to "Shop" or "Cart" When Logo or Cart Icon is Clicked #397

Open
PranavKeshav24 opened this issue May 24, 2024 · 2 comments · May be fixed by #429
Open

Comments

@PranavKeshav24
Copy link
Contributor

Issue Description

The navigation link highlight does not update to "Shop" when the logo is clicked in both the navbar and the footer. The navigation highlight also does not update to highlight the cart when the cart icon is clicked. It rather has the previous navlink highlighted instead of updating it to shop when clicked on the logo and cart when clicked on the cart.

Steps to Reproduce

  1. Open the website.
  2. Click on any navigation link (e.g., "Men", "Women", "Kids" ) to highlight it.
  3. Click on the logo in the navbar or the footer to navigate to the "Shop" page.
  4. Observe the navigation link highlight.
  5. Click on the cart.
  6. Observe the navigation link highlight.

Expected Behavior

When the logo is clicked in either the navbar or the footer, the navigation link highlight should update to the "Shop" link, indicating that the user is now on the "Shop" page. When the cart icon is clicked, the navigation link should update to highlight the cart.

Actual Behavior

The navigation link highlight does not update to "Shop" when the logo is clicked in both the navbar and the footer. The navigation highlight also does not update to highlight the cart when the cart icon is clicked. It continues to highlight the previous navlink the user was on.

Screenshots

image
image

Please assign this issue to me. I am a contributor at GSSoC' 24. I would be very happy to work on it.

@PranavKeshav24
Copy link
Contributor Author

@Vansh-Choudhary Could you please assign this issue to me? I would be very happy to work on it.

@diksha2774
Copy link

Hi, I would love to work on #397 under GSSoC '24. Could you please assign it to me?

@diksha2774 diksha2774 linked a pull request May 29, 2024 that will close this issue
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 a pull request may close this issue.

2 participants