-
Notifications
You must be signed in to change notification settings - Fork 20
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): adding thumbnail slot, header styling for image / header combo #1207
Conversation
🦋 Changeset detectedLatest commit: 902525c 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: -29 B (0%) Total Size: 189 kB
ℹ️ View Unchanged
|
Need some feedback here with regards to the header sizing. Not currently limiting the header image size here to give room for the image and the header tag. Not sure if there should be a hard limit on that image size. Both the thumbnail image and the heading tag are in the block which seems okay but wasn't sure if the placement of these would cause any problems? (Image tag above heading tag) |
If the image is non-decorative (i.e., needs This is a case where the logical reading order doesn't necessarily match the visual reading order. Where it gets tricky is if both the image and the heading are links (as I know has been done when implementing cards in the past, and maybe present). Then visual focus order could be moving in an unexpected direction: tab focus moving up from the heading to the image. But I think we really shouldn't be having two or three links (image, heading, and CTA) to the same destination in cards anyway. |
@coreyvickery @brianferry, I'm not sure if we need a hard limit on the image size. Might be better to add guidelines to documentation if we need to make a recommendation. |
is it possible to do this without adding or removing a new slot name? |
We can instruct the user to include both their image and heading element in the header slot and update the css to show all the items in the header. Then update our .full pattern css to include the styles needed. Pretty minor changes with that method |
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.
Nice, minimal change that gets the job done :)
@bennypowers @brianferry yes that works for us. |
@brianferry can you add a patch changeset? Then we're good to merge |
@bennypowers added |
What I did
<header>
block in the shadowdom.