-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix: make EmptyState implementation consistent with Vanilla Framework #1076
Conversation
Checked the changes in percy and am not sure why some of them are there. Checked locally the storybook differences between main and my branch, and couldn't replicate the changes spotted by percy, apart from the 2 changes related to |
Yes, it looks like the diff is made by older version of main branch for some reason. I'll have a look if I can restart those to get them cleaned up. |
@vladimir-cucu I think the Percy issue is caused by the fact that your branch is likely not created from freshest Could you fetch and rebase on top of fresh |
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, thanks!
height: "2.5rem", | ||
width: "2.5rem", | ||
height: "10rem", | ||
width: "10rem", |
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.
Icons shouldn't be used this way. They were not designed to be scaled that much up (and weird things may start happening).
This one for example doesn't scale on small screens due to missing max-width that we have on img
:
Ideally, this should only be used with images. Would be good not to document an example with a bad pattern like this.
Maybe let's use this one from assets: https://assets.ubuntu.com/v1/c17e0d92-container.svg
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 comment! Didn't know about this. The default example has the exact same issue with scaling on small screens. I've used the image from the assets for the default example as well.
@bartaz After rebase on top of |
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, thanks!
🎉 This PR is included in version 0.53.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Done
EmptyState
component design be consistent with No content Empty State in Vanilla Framework.Fixes
Screenshots