-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat(badge): add notification variant #3993
Conversation
Run & review this pull request in StackBlitz Codeflow. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 3a5f112 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 3a5f112. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Size Change: +45 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3a5f112:
|
Passing run #8265 ↗︎
Details:
Review all test suite changes for PR #3993 ↗︎ |
@@ -405,6 +405,19 @@ Use a small Badge only when vertical density is a concern. The guidelines for us | |||
`.trim()} | |||
</LivePreview> | |||
|
|||
### Notification Counter |
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.
suggestion: Combine this section with the existing "Counter" section and replace the content with this:
Use the counter Badge to visually highlight a count in a UI, like the number of pending invitations or the number of errors.
Counter Badges have neutral, error, and notification variants. The error variant should always include an error icon. The notification variant informs users of new or unread items, such as messages, notifications, or updates.
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.
I like it, added to upcoming commit
Passing run #8267 ↗︎
Details:
Review all test suite changes for PR #3993 ↗︎ |
This pull request primarily introduces a new badge variant,
notification_counter
, to the badge component inpackages/paste-core/components/badge
.It uses the new design tokens for notifications