-
-
Notifications
You must be signed in to change notification settings - Fork 175
a117: extract explicit tag components with enforce a11y #779
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
| </script> | ||
|
|
||
| <template> | ||
| <span v-if="disabled" class="opacity-50"><slot /></span> |
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.
we should probably have a number of the other styles so it looks visually similar or you'd experience layout shift when disabling a button
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.
Yes, this was a quick one, because this isn't used anywhere yet. Just wanted to sketch it out.
|
conceptually this seems good to me 👍 |
This reverts commit f0876f4.
This splits the existing
TagClickableinto 3 specific components:TagButtonTagLinkTagRadioButtomAll have their own implementation and enforce proper usage especially with respect a11y.
The idea is that their implementation should only be touched when updating the design system, needing to extend them or wanting to prevent misusage. Their are explicit strict and not flexible, so they can only be used as intended (no
<a href="" type="button">).The tag component here is an example if this is a pattern we want to continue with. I am leaving the PR as a draft for now, so we can have some discussion about wether or not this is a good direction.