Description:
In
Leaderboard.tsx
, each contributor row below the podium has role="button" and cursor-pointer styling, giving users the clear expectation that clicking will open the contributor's GitHub profile. Instead, the onClick handler does:
onClick={() => {
const el = document.getElementById('contributors');
el?.scrollIntoView({ behavior: 'smooth' });
}}
This scrolls the page to an anchor — completely unrelated to the contributor that was clicked. The html_url field is available on the Contributor type but is never used.
Steps to reproduce:
- Visit any page with the Leaderboard component
- Click any contributor row below the top 3 podium
- Page scrolls instead of opening the GitHub profile
Expected:
Opens contributor.html_url in a new tab File:
Leaderboard.tsx
~line 117
Description:
In
Leaderboard.tsx
, each contributor row below the podium has role="button" and cursor-pointer styling, giving users the clear expectation that clicking will open the contributor's GitHub profile. Instead, the onClick handler does:
onClick={() => {
const el = document.getElementById('contributors');
el?.scrollIntoView({ behavior: 'smooth' });
}}
This scrolls the page to an anchor — completely unrelated to the contributor that was clicked. The html_url field is available on the Contributor type but is never used.
Steps to reproduce:
Expected:
Opens contributor.html_url in a new tab File:
Leaderboard.tsx
~line 117