piyushgarg-dev / piyushgargdev-nextjs

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

[Bug]: Join Discord Button: Persistent White Border on Return from Link #1742

Open gaganveerbawa opened 3 weeks ago

gaganveerbawa commented 3 weeks ago

Describe the bug

When users click the "Join Discord" button on the homepage, it receives a white illuminated border. Upon returning to the homepage after following the link, the button remains highlighted with this border, which could be distracting and suggests it is still active.

To Reproduce

  1. Go to homepage
  2. Click on Join Discord
  3. Return back to the homepage
  4. Observe that the "Join Discord" button is still highlighted with a white border.

Expected behavior

When the user navigates back to the homepage, the "Join Discord" button should return to a neutral state without any highlighted border. Or it could only be highlighted when hovered.

Screenshots/Videos

https://github.com/user-attachments/assets/97f38283-2b5e-406c-9f6c-8658e0380794

Additional context

No response

Please checkmark the following checklist

RickParamanik18 commented 3 weeks ago

/attempt #1742