Skip to content

Conversation

@vachmara
Copy link
Contributor

@vachmara vachmara commented Oct 23, 2025

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This pull request refactors several UI components in HomeCard.vue and [username].vue to 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:

  • Replaced anchor tags inside buttons with direct navigation using the :to prop and added appropriate labels for better accessibility in UButton components.
  • Updated the card to use the :to prop for navigation instead of relying on click events, making the code cleaner and more maintainable.

Button and Badge UI Enhancements:

  • Changed the Discord badge unlock button to dynamically use the solid or outline variant based on unlock status, and added navigation and label props for improved clarity.
  • Improved the logout button by using the Vue @click.stop modifier for event handling, simplifying the code.

Style Consistency:

  • Updated background sizing classes in [username].vue for consistency and readability (bg-size-[300%] and sm:p-11).

Comment on lines -142 to -146
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 },
]"
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something like that?
image

@vachmara vachmara requested a review from danielroe November 18, 2025 10:27
@vachmara
Copy link
Contributor Author

Do we still need this PR, or should I close it since #352 already resolves the same issue? @HugoRCD

@HugoRCD
Copy link
Member

HugoRCD commented Dec 18, 2025

@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!

@vachmara
Copy link
Contributor Author

Great, I'll look into it, thanks!

@vercel
Copy link

vercel bot commented Dec 29, 2025

@vachmara is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nuxters Ready Ready Preview, Comment Jan 3, 2026 6:30pm

@HugoRCD
Copy link
Member

HugoRCD commented Jan 2, 2026

I've just launched the project locally and I've got quite a few visual bugs

Logged with Github:
CleanShot 2026-01-02 at 14 14 47@2x

Logged with Github and Discord:
CleanShot 2026-01-02 at 14 15 28@2x

@vachmara
Copy link
Contributor Author

vachmara commented Jan 2, 2026

Looking into it

@vachmara
Copy link
Contributor Author

vachmara commented Jan 2, 2026

This should now be fixed @HugoRCD

I also fixed fetchNuxtUIProOutsideCollaborators to prevent errors on localhost for users who are not part of Nuxt org

@HugoRCD
Copy link
Member

HugoRCD commented Jan 2, 2026

Much better, the only thing missing is the button's hover state, which I find a little odd (you can see the line behind it).

CleanShot 2026-01-02 at 15 23 53@2x

@vachmara
Copy link
Contributor Author

vachmara commented Jan 2, 2026

Nice catch! I’ve updated the hover background color

@HugoRCD
Copy link
Member

HugoRCD commented Jan 2, 2026

Ok I'm not a big fan of this green but it also lacks active: management

CleanShot.2026-01-02.at.15.51.36.mp4

@vachmara
Copy link
Contributor Author

vachmara commented Jan 2, 2026

Ok I'm not a big fan of this green but it also lacks active: management

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?

@HugoRCD
Copy link
Member

HugoRCD commented Jan 2, 2026

Ok I'm not a big fan of this green but it also lacks active: management
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!

@vachmara
Copy link
Contributor Author

vachmara commented Jan 3, 2026

Okay! Should be better now

@HugoRCD
Copy link
Member

HugoRCD commented Jan 3, 2026

Ok sorry to be a bit of a pain, first it looks better without the button but the user should still be shown a button to share his profile, then I don't have the impression that you can click on the card to open your profile πŸ€” And once the badges are retrieved there should be no more link to click on the button then we are redirected to discord again
CleanShot 2026-01-03 at 13 40 59@2x

@vachmara
Copy link
Contributor Author

vachmara commented Jan 3, 2026

All good, I missed quite a few details on my side πŸ˜… We should probably add test cases to avoid rollbacks later

@HugoRCD
Copy link
Member

HugoRCD commented Jan 3, 2026

Ok I think it's perfect now except for the responsive which could be handled a little better, but then it really would be perfect!

CleanShot 2026-01-03 at 18 31 06@2x

@vachmara
Copy link
Contributor Author

vachmara commented Jan 3, 2026

Perfect, it's fixed!

@HugoRCD
Copy link
Member

HugoRCD commented Jan 3, 2026

lgtm, thank you very much πŸ™Œ

@danielroe danielroe merged commit 5432367 into nuxt:main Jan 5, 2026
6 checks passed
@vachmara vachmara deleted the fix/design-home-card branch January 5, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants