-
Notifications
You must be signed in to change notification settings - Fork 110
Create CTA: grid with products and link pattern, alt #390
Conversation
…nm/twentytwentyfive into graylaurenm-cta-grid-products-link
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Preview changesYou can preview these changes by following the link below: I will update this comment with the latest preview links as you push more changes to this PR. |
Note that for some reason this pattern isn't showing up for me in the pattern inserter. Not sure what I'm doing wrong. |
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.
Thanks for working on this, Joen!
I've tested this one and I see the pattern in the inserter. Although, the colored covers are looking smaller in that view and it doesn't represent the pattern perfectly. But that's likely unrelated to the PR. You can see what I referenced in the following screencast:
Screen.Recording.2024-09-24.at.14.20.06.mov
Regarding the pattern, everything looks good. The only thing I saw is that the grid items that only contain text are the only ones that are not looking squared on mobile.
The other unrelated Gutenberg issue I found, is that squared images are not working well on Firefox.
Thanks for pushing the change, and for reviewing. I wonder if we can't fix the issue with collapsing text by making those transparent cover blocks with 1:1 aspect ratio too. I have to go to a very late lunch now, in case you get to it, feel free to push such a change. Otherwise I can take a look later.
This is gutenberg core yes? Do you know if this is tracked already? Pretty sure that we're using web-standard |
Yes, that's what I was thinking. I've just pushed changes to wrap those texts in a cover block (1:1) rather than stack. It's working well for me now.
Yes, it's Gutenberg core. I was checking this one out and it seems that Firefox needs to have the width and height on images for aspect-ratio/object-fit to work. I couldn't find any issue that's tracking this. Screen.Recording.2024-09-24.at.15.18.42.mov |
Nice! Works well. Good to go? Thank you for the help, all. |
That sounds good to me. |
🙏 |
Description
Alternative to #273 and based on the work in #273 (comment). Props @graylaurenm for the work.
Screenshots