feat: update reader activation newsletters list#4491
Open
thomasguillot wants to merge 16 commits intotrunkfrom
Open
feat: update reader activation newsletters list#4491thomasguillot wants to merge 16 commits intotrunkfrom
thomasguillot wants to merge 16 commits intotrunkfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the newsletter signup form UI with several improvements to spacing, layout, and component organization. The changes introduce new utility classes and components to create a more maintainable and consistent design system.
Changes:
- Refactored spacing utilities from class-based (e.g.,
newspack-ui__spacing-top--16) to data-attribute-based (e.g.,data-margin-top="3") for better flexibility and cleaner HTML - Added new utility classes for visibility (
hidden,overflow-hidden) and positioning (position-absolute,position-relative, etc.) - Introduced a new
vstackcomponent for vertical stacking with gap-based spacing and a gradient divider component for visual fade effects - Enhanced newsletter signup form with improved spacing, accessibility (aria-label on "See all" button), and better visual structure using the new components
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/reader-activation-newsletters/style.scss | Removed redundant CSS rules that are now handled by utility classes and components |
| src/reader-activation-newsletters/newsletters-form.js | Updated JavaScript to hide gradient divider when "See all" is clicked |
| src/newspack-ui/scss/variables/_spacing.scss | Added spacer-1 variable (8px) for vstack default gap |
| src/newspack-ui/scss/elements/misc/_visibility.scss | New file with visibility utility classes (hidden, overflow-hidden) |
| src/newspack-ui/scss/elements/misc/_spacing.scss | Refactored from BEM classes to data-attribute selectors with loop-based generation |
| src/newspack-ui/scss/elements/misc/_position.scss | New file with position utility classes for all CSS position values |
| src/newspack-ui/scss/elements/misc/_index.scss | Added imports for position and visibility utilities |
| src/newspack-ui/scss/elements/misc/_dividers.scss | Added gradient-divider component with absolute positioning |
| src/newspack-ui/scss/elements/_layout.scss | Added vstack component for vertical flex layouts with gap spacing |
| includes/reader-activation/class-reader-activation.php | Refactored newsletter form HTML to use new utility classes and components |
| includes/plugins/woocommerce/my-account/templates/v1/payment-information.php | Updated to use new data-attribute spacing utilities |
| includes/plugins/woocommerce/my-account/templates/v1/navigation.php | Updated to use new data-attribute spacing utilities |
| includes/plugins/woocommerce/my-account/templates/v1/account-settings.php | Updated to use new data-attribute spacing utilities |
| includes/class-newspack-ui.php | Updated demo page to showcase new newsletter form with all improvements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dkoo
requested changes
Feb 20, 2026
Contributor
Author
🤦 Fixed: 4f97661 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

All Submissions:
Changes proposed in this Pull Request:
This PR includes a bunch of smaller improvements:
divider-gradientdata-margin-top="1", and now also supportsgapvstackcomponent?ui-demopageHow to test the changes in this Pull Request:
Other information: