piyushgarg-dev / piyushgargdev-nextjs

https://piyushgarg.dev
191 stars 1.28k forks source link

[Bug]: hover effect not working properly in work experience section. #1750

Open harshkubavat7 opened 1 week ago

harshkubavat7 commented 1 week ago

Describe the bug

Issue: Hover Background Color Not Clearing on First Text

Description: When hovering over multiple text elements of work experience, the background color does not clear from the first text element. Instead, both the first and currently hovered text elements display the background color, creating a cluttered look.

Expected Behavior: Only the currently hovered text element should show the background color; the first text's background color should be removed when hovering over a new element.

Possible Solution: =Clear the background color from the first text element when another text is hovered.

To Reproduce

  1. Go to work experience
  2. hover on Teachyst,Dimension,Emitrr,Trryst.
  3. Scroll down to '....'
  4. See error

Expected behavior

Clear the background color from the first text element when another text is hovered.

Screenshots/Videos

Screenshot 2024-11-11 190341

Additional context

No response

Please checkmark the following checklist