firstcontributions.github.io icon indicating copy to clipboard operation
firstcontributions.github.io copied to clipboard

fix: update project link structure in ProjectCard component

Open WalterBanda123 opened this issue 11 months ago • 2 comments

This pull request updates the ProjectCard component to improve the structure and user experience of the project link section. The main changes include repositioning the project link.

UI and UX improvements:

  • Moved the project link (<a class="Card-Real-Link">) to wrap only the "Go to Project" button instead of the entire card, improving accessibility and click behaviour.
  • This was to resolve the issue https://github.com/firstcontributions/firstcontributions.github.io/issues/535

WalterBanda123 avatar Dec 13 '25 09:12 WalterBanda123

Thank you for opening this PR.

This is a bug caused by nested <a> tags, which is against the HTML specification. The suggested solution doesn't cover the full picture because it ignores what is being rendered inside the child components. While wrapping it in another <a> tag might appear to work, it doesn't solve the root cause of the issue.

See the discussion here

  • https://github.com/firstcontributions/firstcontributions.github.io/issues/535#issuecomment-3948288873

Esh07 avatar Feb 24 '26 01:02 Esh07