-
Notifications
You must be signed in to change notification settings - Fork 25
refactor: home card accessibility & design #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| canUnlockNuxterBadge ? 'primary-button' : 'bg-neutral-900', | ||
| { 'cursor-auto hover:bg-neutral-950': !canUnlockNuxterBadge }, | ||
| { 'primary-button-discord': !linked.discord && canUnlockNuxterBadge }, | ||
| { 'cursor-auto hover:bg-neutral-950 text-primary-400': linked.discord && canUnlockNuxterBadge }, | ||
| ]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we want to have a different colour if it's possible to unlock the discord badge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@vachmara I fixed some display issues but maybe not the existing accessibilities issues and not reviewed the design so feel free to suggest changes if you want! |
|
Great, I'll look into it, thanks! |
|
@vachmara is attempting to deploy a commit to the Nuxt Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Looking into it |
|
This should now be fixed @HugoRCD I also fixed |
|
Nice catch! Iβve updated the hover background color |
|
Ok I'm not a big fan of this green but it also lacks CleanShot.2026-01-02.at.15.51.36.mp4 |
Maybe we should use the same button variant and color. Iβm not a fan of the current one either, and I couldnβt find a variation that feels satisfying Alternatively, we could improve the outline primary variant, which comes from the old design? |
It doesn't really matter to me, just make it a bit more good looking! |
|
Okay! Should be better now |
|
All good, I missed quite a few details on my side π We should probably add test cases to avoid rollbacks later |
|
Perfect, it's fixed! |
|
lgtm, thank you very much π |






π Linked issue
β Type of change
π Description
This pull request refactors several UI components in
HomeCard.vueand[username].vueto improve accessibility, streamline navigation, and enhance the user experience. The most significant changes include replacing anchor tags with direct button navigation, updating button variants and labels for clarity, and applying minor style adjustments for consistency.Navigation and Accessibility Improvements:
:toprop and added appropriate labels for better accessibility inUButtoncomponents.:toprop for navigation instead of relying on click events, making the code cleaner and more maintainable.Button and Badge UI Enhancements:
solidoroutlinevariant based on unlock status, and added navigation and label props for improved clarity.@click.stopmodifier for event handling, simplifying the code.Style Consistency:
[username].vuefor consistency and readability (bg-size-[300%]andsm:p-11).