Update revert button text and description (#48717)

* Update Revert button text and description

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Add (Classic) as suffix instead of prefix

* Button text should be in center

* Fix: Button text isn't in center

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Manish Menaria 2024-07-03 19:31:50 +05:30 committed by GitHub
parent bf6f3bbf41
commit ab826271d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 4 deletions

View File

@ -98,21 +98,22 @@ const RevertClassicTemplateButton = () => {
} }
>
{ __(
'Revert to Classic Product Template',
'Revert to Classic Template',
'woocommerce'
) }
</Button>
<span>
{ createInterpolateElement(
__(
`The <strongText /> template doesnt allow for reordering or customizing blocks, but might work better with your extensions`,
`The <strongText /> template doesnt allow for reordering or customizing blocks, but might work better with your extensions.`,
'woocommerce'
),
{
strongText: (
<strong>
{ template?.record?.title
?.rendered ?? '' }
{ template?.record?.title?.rendered
? `${ template.record.title.rendered } (Classic)`
: '' }
</strong>
),
}

View File

@ -2,6 +2,11 @@
display: flex;
flex-direction: column;
gap: $gap;
button {
justify-content: center;
}
span {
color: $gray-700;
}

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix confusing messages prompting switch to classic templates