-
Notifications
You must be signed in to change notification settings - Fork 34
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
Feature: EmptyState component #2175
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.
packages/odyssey-storybook/src/components/odyssey-mui/EmptyState/EmptyState.stories.tsx
Outdated
Show resolved
Hide resolved
packages/odyssey-storybook/src/components/odyssey-mui/EmptyState/EmptyState.stories.tsx
Outdated
Show resolved
Hide resolved
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.
Finished my first-pass review.
packages/odyssey-storybook/src/components/odyssey-mui/EmptyDataState/EmptyDataState.stories.tsx
Outdated
Show resolved
Hide resolved
I believe, last I spoke to @hossammourad-okta, we had a few other changes that were supposed to go in there. For instance, the component should've been named |
I'm strongly in favor of calling this What other changes do we want to roll into this one? I updated |
heading: string; | ||
/** | ||
* A descriptive text explaining more context as to why we don't have data. | ||
*/ | ||
text: string; |
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 think this should be named description
right? text
is a bit generic. The intent is for it to describe the heading similar to an aria-description
.
Gretchen confirmed |
cc50943
to
ff56f77
Compare
https://oktainc.atlassian.net/browse/OKTA-705445
Summary
Create a new generic
EmptyState
component and its Storybook.