-
Notifications
You must be signed in to change notification settings - Fork 127
Fix: Color problems with the newsletter sign-up pattern #528
Conversation
… in different variations.
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. |
I'm trying to test this, but I'm having some issues with my local environment... |
@beafialho yes, that's "Sunrise" right? |
The only two color contrasts that are guaranteed to work on all palettes are contrast and base. |
Correct. |
From the issue:
Because the stories footer and the newsletter sign-up has the same background color. |
Then, let's consider using the group block with |
Great point, I am not sure why the cover was used. |
@beafialho @carolinan this one is ready for a new pass when you have time. Thanks 🙌 |
patterns/cta-newsletter.php
Outdated
<!-- wp:heading {"textAlign":"center","fontSize":"xx-large"} --> | ||
<h2 class="wp-block-heading has-text-align-center has-xx-large-font-size"><?php esc_html_e( 'Sign up to get daily stories', 'twentytwentyfive' ); ?></h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:group {"tagName":"aside","metadata":{"categories":["call-to-action"],"patternName":"twentytwentyfive/cta-newsletter","name":"Newsletter Sign Up"},"align":"full","className":"is-style-section-3","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}},"dimensions":{"minHeight":""}},"layout":{"type":"constrained","contentSize":"800px"}} --> |
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.
Nit: remove metadata.
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 believe we need to keep the categories so that the shuffle functionality can be more robust.
Have we concluded whether we're keeping the pattern name and name? I saw some discussions going on.
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.
But the category, slug, name everything is listed in the file header.
Who can give a definite answer?
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 could be getting it wrong, but it seems that the suffle functionality relies on the metadata. Please check this code.
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.
The metadata is inserted in the editors when you insert the pattern.
So it is not missing from the shuffle functionality.
I went down a rabbit hole trying to find any official documentation, dev note or similar.
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.
Sounds good, thanks for that. Let's try to define what we do with the metadata in the issue and work on it in bulk.
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.
From my end, using the section style on the group works much better across all the combined style variations.
Test ReportDescription: Video - 2024-10-10_12-04-27.mp4 |
@sudip-md thank you. That's not how I see it in the branch where I worked. This is how I see it: Screen.Recording.2024-10-10.at.09.30.53.movCan you please check that you're on the |
I think this can be merged but we need to define the questions clearly if we can find who to reach out to about the metadata, including the translation of the metadata. |
Sounds good. Shall we keep the conversation about metadata here? I saw they pinged Daniel Richards and maybe he has some more insights about it. |
I've removed the metadata and merging this one. In case we decide to add metadata to patterns we can revisit later in batch. Thank you 🙌 |
Description
Fixes #526
Update cover blocks to use contrast color for texts to work in different variations.
Screenshots
Screen.Recording.2024-10-09.at.10.40.14.mov
Testing Instructions