-
Notifications
You must be signed in to change notification settings - Fork 68
LG-4511: add badgeProps to BasicEmptyState #2497
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
Conversation
🦋 Changeset detectedLatest commit: cc62ffe The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
386e6dc
to
4e1c639
Compare
Size Change: +192 B (+0.01%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
4e1c639
to
a5b6865
Compare
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.
packages/empty-state/src/BasicEmptyState/BasicEmptyState.styles.ts
Outdated
Show resolved
Hide resolved
@@ -33,6 +33,7 @@ import { BasicEmptyState } from '@leafygreen-ui/empty-state'; | |||
title="No Results Found" | |||
description="Try adjusting your filters or search terms" | |||
graphic={<SvgOrImgComponent />} | |||
badgeProps={{ variant: 'blue', children: 'Optional' }} |
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'm curious—we allow components for the other props, like primaryButton, so why did we make this an object?
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 was continuing the pattern we're using elsewhere, such as FormFooter
and ConfirmationModal
✍️ Proposed changes
badgeProps
toBasicEmptyState
component🎟 Jira ticket: LG-4511
✅ Checklist
For bug fixes, new features & breaking changes
yarn changeset
and documented my changes🧪 How to test changes
BasicEmptyState
storybook examples