-
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
Media Cards: Replace gallery media icon with pill #13010
Conversation
Size Change: +468 B (+0.05%) Total Size: 942 kB
ℹ️ View Unchanged
|
4fec9c8
to
360bc32
Compare
ee82a68
to
da00fd9
Compare
da00fd9
to
839e4bf
Compare
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. |
> | ||
<Pill | ||
prefix="Gallery" | ||
content={galleryCount?.toString() ?? ''} |
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.
If we want gallery count to be used as a string, would it be worth lifting this up and converting in the card enhancer?
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.
I think it makes sense that gallery count is a number, but was considering reworking the Pill component so that the conversion isn't needed. (Either extending the types that content
accepts, or removing it entirely and making Pill a wrapper for child elements.)
We want to release the gallery and podcast pills together. As most of the layout and logic changes are shared I'm closing this in favour of a combined PR that replaces both media icons: #13035 |
What does this change?
Updates media cards to show a pill component in place of the media icon for galleries. The pill is displayed below the headline and trail text in place of age and comment count, and includes the number of images in the gallery.
This is dependent upon #12980 which updates the media card colour palette.
Why?
This is an incremental change which forms part of a larger body of work to update the design of media cards
Screenshots