Repository navigation
Build trust-bar, newsletter-signup, and republish-notice patterns (LS-1721) #11
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
josearmandoabreu
merged 10 commits into
develop
from
feat/ls-1721-define-spotlight-trust-newsletter-and-editorial-utility-patterns
Aug 26, 2026
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
02a4b47
Start PR 3: build republish-notice pattern with real plugin integration
josearmandoabreu 857a28e
Fix republish button conflicts and sitewide spacing scale collision
josearmandoabreu 65ca39b
Fix custom button styles' padding after spacing scale correction
josearmandoabreu fb1ba58
Contain story-card media to prevent broken-image layout bleed
josearmandoabreu f6f0d75
Add newsletter-signup patterns for front-page and sidebar variants
josearmandoabreu c454688
Wire newsletter-signup patterns into front-page and sidebar
josearmandoabreu e081e5f
Fix trust-bar and Explore-topics sidebar spacing after scale fix
josearmandoabreu 01bae3b
Document newsletter form-integration status and close out PR 3
josearmandoabreu 3a1aa63
Address CodeRabbit feedback on PR 11
josearmandoabreu f51a5f6
Wire the newsletter popup to Popup Maker and Gravity Forms
josearmandoabreu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,3 +102,4 @@ $RECYCLE.BIN/ | |
| .cache/ | ||
| .aider* | ||
| .continue/ | ||
| .playwright-mcp/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| /* | ||
| * A hand-typed border width+style+color+radius block-style attribute | ||
| * doesn't byte-match WordPress's own style-engine serialization (see | ||
| * patterns/newsletter-signup.php's header comment) — real CSS instead, | ||
| * same fix already used for republish-notice. | ||
| */ | ||
| .newsletter-signup { | ||
| border: 1px solid var(--wp--preset--color--neutral-300); | ||
| border-radius: var(--wp--preset--border-radius--200); | ||
| } | ||
|
|
||
| /* | ||
| * newsletter-signup-compact.php embeds the site's real Gravity Form | ||
| * rather than static markup, so its input/button come from Gravity | ||
| * Forms' own generated HTML, not core/button — restyled directly here | ||
| * instead of rebuilt from scratch, the same CSS-bridge approach already | ||
| * used for the CC Post Republisher plugin's button in | ||
| * republish-notice.css. The field's visible label is screen-reader-only | ||
| * since the field's placeholder text (set directly in the form, in | ||
| * wp-admin) already communicates its purpose visually, matching Figma. | ||
| */ | ||
| .newsletter-signup-compact .gfield_label { | ||
| position: absolute; | ||
| width: 1px; | ||
| height: 1px; | ||
| overflow: hidden; | ||
| clip-path: inset(50%); | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .newsletter-signup-compact .ginput_container input[type="email"], | ||
| .newsletter-signup-compact .ginput_container input[type="text"] { | ||
| width: 100%; | ||
| background-color: var(--wp--preset--color--base); | ||
| border: 1px solid var(--wp--preset--color--neutral-400); | ||
| border-radius: var(--wp--preset--border-radius--200); | ||
| padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30); | ||
| font-family: var(--wp--preset--font-family--body); | ||
| font-size: var(--wp--preset--font-size--200); | ||
| } | ||
|
|
||
| .newsletter-signup-compact .gform_footer input.gform_button { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 100%; | ||
| background-color: var(--wp--preset--color--accent-200); | ||
| color: var(--wp--preset--color--neutral-100); | ||
| border: none; | ||
| border-radius: var(--wp--preset--border-radius--500); | ||
| padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30); | ||
| font-family: var(--wp--preset--font-family--body); | ||
| font-size: var(--wp--preset--font-size--300); | ||
| font-weight: var(--wp--custom--font-weight--semi-bold); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .newsletter-signup-compact .gform_footer input.gform_button:hover { | ||
| background-color: var(--wp--preset--color--accent-300); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| * The "CC" icon circle needs a fixed size core/group can't set via any | ||
| * block attribute — real CSS for size/centering. Border is CSS too, not | ||
| * a hand-typed inline-style block attribute — that combination (all | ||
| * four border sub-properties at once) triggered a "Block contains | ||
| * unexpected or invalid content" editor error, since it didn't match | ||
| * WordPress's own generated serialization. | ||
| */ | ||
| .republish-notice__icon { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 2.5em; | ||
| height: 2.5em; | ||
| flex-shrink: 0; | ||
| border: var(--wp--custom--border-width--base) solid var(--wp--preset--color--neutral-700); | ||
| border-radius: var(--wp--preset--border-radius--500); | ||
| } | ||
|
|
||
| /* | ||
| * The plugin's button isn't a core/button, so | ||
| * styles/blocks/button/republish-article.json's is-style-republish-article | ||
| * class can't reach it — same values, targeted directly instead. The | ||
| * icon is the same arrow custom-button.css already uses for that style. | ||
| */ | ||
| .republish-notice #cc-post-republisher-modal-button-open { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| background-color: var(--wp--preset--color--accent-500); | ||
| color: var(--wp--preset--color--base); | ||
| border: none; | ||
| border-radius: var(--wp--preset--border-radius--200); | ||
| padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20); | ||
| font-size: var(--wp--preset--font-size--200); | ||
| font-weight: var(--wp--custom--font-weight--semi-bold); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .republish-notice #cc-post-republisher-modal-button-open:hover { | ||
| background-color: var(--wp--preset--color--accent-600); | ||
| } | ||
|
|
||
| .republish-notice #cc-post-republisher-modal-button-open::before { | ||
| content: ""; | ||
| display: inline-block; | ||
| width: 1.25em; | ||
| height: 1.25em; | ||
| margin-inline-end: var(--wp--preset--spacing--5); | ||
| background-color: currentcolor; | ||
| mask-image: url("../icons/arrow-line-up-right.svg"); | ||
| mask-repeat: no-repeat; | ||
| mask-size: contain; | ||
| -webkit-mask-image: url("../icons/arrow-line-up-right.svg"); | ||
| -webkit-mask-repeat: no-repeat; | ||
| -webkit-mask-size: contain; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.