-
Notifications
You must be signed in to change notification settings - Fork 22
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(card): layout for first slotted p #1380
Conversation
🦋 Changeset detectedLatest commit: 84ba3d6 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 |
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: -4 B (0%) Total Size: 210 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.
There are 2 issues I noticed while reviewing this PR and confirmed in a discussion with @marionnegp.
This change works when the body (anonymous slot) is the :first-child. However when [slot="header]
is present you get a 48px gap between the header and the first <p>
. Per the design spec we should only have 32px here. However we have 32px margin on #body + 16px margin on the <p>
.
For the sake of getting this PR out the door, we are going to move that to a new issue as it is additional scope to what this is trying to fix which is the version where header slot is empty.
The second issue that is also going to be spun off to its own issue, is that when a header slot is .empty
the class is overwritten by #header { display: flex }
and display:none
from the class does not get applied, needs an !important
added.
What I did