Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix spacing between the send-default toggle description and the Manage all subscribers link in the Newsletter settings card.
Original file line number Diff line number Diff line change
Expand Up @@ -130,23 +130,21 @@ export function NewsletterSection( { data, onChange }: NewsletterSectionProps ):
} }
onChange={ handleChange }
/>
{ data.subscriptions && newsletterScriptData && (
<div>
<ExternalLink
href={ newsletterScriptData.subscriberManagementUrl }
onClick={ handleManageSubscribersClick }
>
{ __( 'Manage all subscribers', 'jetpack-newsletter' ) }
</ExternalLink>
</div>
) }
</CardBody>
<CardFooter>
<CardFooter className="newsletter-card-footer">
Copy link
Copy Markdown
Member

@simison simison Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's please use the component system for this instead of adding more CSS.

Couple options

<ExternalLink
href={ getRedirectUrl( 'jetpack-support-subscriptions', { anchor: 'privacy' } ) }
>
{ __( 'Privacy information', 'jetpack-newsletter' ) }
</ExternalLink>
{ data.subscriptions && newsletterScriptData && (
<ExternalLink
href={ newsletterScriptData.subscriberManagementUrl }
onClick={ handleManageSubscribersClick }
>
{ __( 'Manage all subscribers', 'jetpack-newsletter' ) }
</ExternalLink>
) }
</CardFooter>
</Card>
);
Expand Down
7 changes: 7 additions & 0 deletions projects/packages/newsletter/src/settings/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@
.components-card__body > p:first-child {
margin-top: 0;
}

.newsletter-card-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
}
}
Loading