Skip to content

updated card slot from image to media #975

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

Merged
merged 4 commits into from
May 21, 2025
Merged

Conversation

kelseythejackson
Copy link
Collaborator

This is related to #535.
It changes the image slot in the card component to media. It's broader and more appropriate.

Copy link

vercel bot commented May 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webawesome ✅ Ready (Inspect) Visit Preview May 21, 2025 5:52pm

display: flex;

&::slotted(img) {
&::slotted(*) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry if using the wildcard here is too generic and needs to be more specific

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh weird this came in right as I posted this! haha #975 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That said, if you think it's too generic, I'm fine with limiting it to certain elements!

claviska
claviska previously approved these changes May 21, 2025
Copy link
Member

@claviska claviska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Looks great

display: flex;

&::slotted(img) {
&::slotted(*) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first, I wasn't sure if this was too eager and should be scoped down to img, video, and iframe but it is called the "media" slot, so I actually think it's fine as-is.

@claviska claviska changed the title updated card slot from to updated card slot from image to media May 21, 2025
@claviska
Copy link
Member

@kelseythejackson oh this one thing this needs a line in the changelog :)

@kelseythejackson kelseythejackson merged commit 37e82b7 into next May 21, 2025
2 checks passed
@kelseythejackson kelseythejackson deleted the kj/update-card-slot branch May 21, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants