Skip to content

Conversation

@monayemislam
Copy link

feat(card): add ARIA attributes for accessibility

  • Add role="region" to identify card as a distinct section
  • Add aria-labelledby prop to associate with headings
  • Add aria-describedby prop for descriptions

The Card component now supports screen readers better while maintaining its existing implementation pattern.

@tnylea
Copy link
Contributor

tnylea commented Feb 25, 2025

Hey @monayemislam,

Thanks for the PR, but we are going to keep the components the way they currently exist in the components/ui folder. We are going to be upgrading these as well when a stable Tailwind v4 version is available from the UI library: https://www.shadcn-vue.com/

Closing for now. Appreciate it!

@tnylea tnylea closed this Feb 25, 2025
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.

2 participants