ShopNex icon indicating copy to clipboard operation
ShopNex copied to clipboard

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

Open PranavKeshav24 opened this issue 9 months ago • 1 comments

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 avatar May 24 '24 06:05 PranavKeshav24