Skip to content

Commit

Permalink
Admin page: update wording for Boost plugin Critical CSS prompt (#40293)
Browse files Browse the repository at this point in the history
Co-authored-by: Adnan Haque <[email protected]>
Co-authored-by: Peter Petrov <[email protected]>
  • Loading branch information
3 people authored Jan 9, 2025
1 parent 465ba79 commit 86b2898
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/plugins/jetpack/_inc/client/at-a-glance/boost/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const DashBoost = ( {
'jetpack'
),
bottom: __(
'Jetpack Boost enhance your site’s performance like top websites, no developer needed.',
'Jetpack Boost enhances your site’s performance like top websites, no developer needed.',
'jetpack'
),
};
Expand All @@ -201,11 +201,17 @@ const DashBoost = ( {

return createInterpolateElement(
__(
'<a>Re-generate your Critical CSS after you make changes on your site</a><Info/>',
'<a><u>Regenerate your Critical CSS</u> after making changes to your site</a><Info/>',
'jetpack'
),
{
a: <a href={ siteAdminUrl + BOOST_PLUGIN_DASH } />,
a: (
<a
href={ siteAdminUrl + BOOST_PLUGIN_DASH }
className="dash-boost-critical-css-info__text"
/>
),
u: <u />,
Info: <CriticalCssInfoPopover />,
}
);
Expand Down Expand Up @@ -517,7 +523,7 @@ const CriticalCssInfoPopover = () => {
screenReaderText={ __( 'Learn more about how critical CSS works', 'jetpack' ) }
>
<h3 className="boost-critical-css-info__title">
{ __( 'Regenerate Critical CSS', 'jetpack' ) }
{ __( 'Get automated Critical CSS', 'jetpack' ) }
</h3>
<p>
{ createInterpolateElement(
Expand Down
7 changes: 7 additions & 0 deletions projects/plugins/jetpack/_inc/client/at-a-glance/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -751,3 +751,10 @@ a.jp-dash-item__manage-in-wpcom,
display: block;
}
}

// We only underline part of the link to Critical CSS info.
.dops-banner__title {
a.dash-boost-critical-css-info__text {
text-decoration: none;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: enhancement
Comment: Dashboard: update wording for Boost plugin prompt.


0 comments on commit 86b2898

Please sign in to comment.