-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Card] Adjust padding of Card.Section, footer and header #962
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.
It’s possible this might cause too much apparent space when the last section is not subdued. Would it make the CSS too brittle to apply the top margin (and add a border) to the Card footer only when the last section is subdued?
Looks 👌
Ignore me. I just saw Ryan's comment. Could you try something like:
?? |
a46ac79
to
4ab396f
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.
Looks great! Thanks for your hard work on this 🎉
4ab396f
to
06f7abf
Compare
👌 |
WHY are these changes introduced?
Resolves #954
When a subdued section
Card
and a footer prop were combined there was no padding/margin between theButton Group
and the edge of the subdued card.It was also discovered in the interim there was the same issue with the Header button Group and a subdued section card as well so this will be resolved.
WHAT is this pull request doing?
This request is adding a margin to the footer section.

Before:
After:

Small screen:

With no header and regular section cards:

Small screen:

Copy-paste this code in
playground/Playground.tsx
:without subdued section: