-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Badge component #3429
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
Badge component #3429
Conversation
Build successful! 🎉 |
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.
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
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.
Build successful! 🎉 |
fixed the prop table issue. only thing left is to figure out how to apply the theme to the new Provider in the side rail. or maybe just go without the Provider? |
Build successful! 🎉 |
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.
Awesome, couple comments
@@ -11,17 +11,25 @@ | |||
*/ | |||
|
|||
|
|||
import badgeStyles from '@adobe/spectrum-css-temp/components/label/vars.css'; | |||
import {Badge} from '@react-spectrum/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.
this will need to be temporarily pulled out so we can merge. otherwise, the production docs will try to find this package but it won't be published yet.
@@ -0,0 +1,20 @@ | |||
{ | |||
"name": "@react-types/badge", | |||
"version": "3.0.0", |
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.
should start at "3.0.0-alpha.0"
--- | ||
category: Status | ||
keywords: [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.
add after_version: 3.0.0
so that this doesn't go out to the prod docs website right away. it would break until we publish the package.
Not sure if we should support disabled badges. I am not really sure what the use case is, and since badges don't have any accessibility semantics, this would just be a general contrast violation. Spectrum says:
https://spectrum.adobe.com/page/badge/#Disabled but afaik badges are never interactive. 🤷 |
Update: discussed with spectrum. We should remove the disabled state. |
Build successful! 🎉 |
Co-authored-by: Devon Govett <[email protected]>
Build successful! 🎉 |
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.
LGTM
Build successful! 🎉 |
#1341 - Add badge component
To add in future alphas:
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project:
Adobe/Quarry