-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add nav badges #24528
Add nav badges #24528
Conversation
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.
Cool, looks good. Going from a previous comment, BadgeUI
would be better name.
`; | ||
|
||
export const Badge = styled.span` | ||
margin-left: 8px; |
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.
Seems unnecessary
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.
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.
Thanks for the changes. This is rebase and ready to merge.
* Migrate styles to css-in-js * Add spacing to navigation child items * Add badge property and styles to navigation items * Update UI component naming * newLine Co-authored-by: Paul Sealock <psealock@gmail.com>
* Migrate styles to css-in-js * Add spacing to navigation child items * Add badge property and styles to navigation items * Update UI component naming * newLine Co-authored-by: Paul Sealock <psealock@gmail.com>
* Migrate styles to css-in-js * Add spacing to navigation child items * Add badge property and styles to navigation items * Update UI component naming * newLine Co-authored-by: Paul Sealock <psealock@gmail.com>
Description
REBASE NEEDED: This PR was branched from #24522 and will need a rebase it's merged.
Adds nav badge property to nav items and adds base styling for the badges.
Note: this currently does not limit the badge to a type of integer. I'm not sure if there are use cases that exist for strings, but we could sanitize in this PR if we decide only number should be allowed.
Screenshots
Testing
npm run storybook:dev
in a terminal.Navigation
story.