firstcontributions.github.io
firstcontributions.github.io copied to clipboard
fix: update project link structure in ProjectCard component
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
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