-
Notifications
You must be signed in to change notification settings - Fork 112
Color problems with the Instagram grid pattern #468
Comments
Let's re-open this and try something similar to #528 where the cover block is replaced with a group block that has a section style. |
Also let me add that during the review of the translatable strings it was requested that the @ should be inside the link, which is how on trunk today the link text has one color. |
I believe the decision to include a cover block there was made because when using a group block, you can't select the aspect ratio, and it wasn't looking square on mobile. However, wrapping the cover on a group block could work. It may not be ideal, but it is the way I could see this working as expected and using the section styles. I'll open a PR for this soon. |
I've been playing with this one, and if we wrap the cover block in the group block the text is not inherited from the group block section style in some cases, but it's defaulted to black. This is something that's coming from the editor. Please see the screencast: Screen.Recording.2024-10-10.at.15.18.57.movAs a workaround, I played a bit with removing the cover block and having a minimum height for the group block that serves as the wrapper. I'm picking the minimum height of 297px which is the computed height of the squares when the pattern is viewed on desktop. This will solve the color problems. But, the first square may look taller in some scenarios. Screen.Recording.2024-10-10.at.15.20.20-lw.movAt this point, the alternatives are:
@carolinan @beafialho thoughts? |
Thanks for taking time to think about this @juanfra. From your second screen recording, it seems that the square scales up and down fairly well in most sizes. If it works overall, I think it would be cooler to have the original color and this setting, instead of having it black. |
Thanks @beafialho I created two PR with two similar approaches:
Can you please try them out and see which one is the one that you prefer? Thanks 🙌 |
Thank you, option 1 looks better IMO! |
Thanks, Bea. I will merge option 1 and close option 2. |
Closing as fixed in #550 |
Is your feature request related to a problem? Please describe.
In the Instagram grid pattern, there is the brand name followed by an @ and a fake username.
The username is a link, but the @ is not, so in some color palettes, the @ and the username have different colors:
In two palettes, both the text and the link color has too low contrast compared to the background color:
Midnight:
Twilight::
In another palette, the text color has a too low contrast compared to the background color:
Evening:
In another palette, the link color has a too low contrast compared to the background color:
Sunrise
The text was updated successfully, but these errors were encountered: