-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pad content based on card properties #13076
Conversation
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Size Change: +29 B (0%) Total Size: 931 kB ℹ️ View Unchanged
|
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.
This is much neater ✨ It was always a bit weird that hasBackgroundColour
wasn't doing anything beyond applying padding.
dotcom-rendering/src/components/Card/components/ContentWrapper.tsx
Outdated
Show resolved
Hide resolved
a8d2c2e
to
1b4c7ae
Compare
Seen on PROD (merged by @abeddow91 7 minutes and 36 seconds ago) Please check your changes! |
What does this change?
Adds padding option to the content wrapper, allowing the user to choose between small, large or no padding.
This allows us to remove some card context from the content wrapper, with this now being handled at the card level.
Why?
We need to extend the padding offering to allow for "large" (8px) padding on media cards in beta containers.
Screenshots