Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update No-Results Message Formatting in Product Collection Block
Browse files Browse the repository at this point in the history
This commit simplifies the layout and message content for the 'No results found' message in the product collection block's no-results edit component. The changes include:

1. Removal of the full stop in the 'No results found' string for consistency.
2. Replacing the 'core/group' block with a 'core/paragraph' block.
3. Streamlining the message content to be more concise and integrated into fewer text blocks.
4. Direct links for 'clearing any filters' and navigating to the 'store's home' are now included in the same paragraph.
  • Loading branch information
imanish003 committed Nov 17, 2023
1 parent 0a4395a commit a606add
Showing 1 changed file with 15 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,59 +23,28 @@ const TEMPLATE: Template[] = [
textAlign: 'center',
fontSize: 'medium',
content: `<strong>${ __(
'No results found.',
'No results found',
'woo-gutenberg-products-block'
) }</strong>`,
},
],
[
'core/group',
'core/paragraph',
{
layout: {
type: 'flex',
flexWrap: 'wrap',
justifyContent: 'center',
},
style: { spacing: { blockGap: '0.5rem' } },
content: `${ __(
'You can try',
'woo-gutenberg-products-block'
) } <a href="#" class="wc-link-clear-any-filters">${ __(
'clearing any filters',
'woo-gutenberg-products-block'
) }</a> ${ __(
'or head to our',
'woo-gutenberg-products-block'
) } <a href="#" class="wc-link-stores-home">${ __(
"store's home",
'woo-gutenberg-products-block'
) }</a>`,
},
[
[
'core/paragraph',
{
content: __(
'You can try',
'woo-gutenberg-products-block'
),
},
],
[
'core/paragraph',
{
content: `<a href="#" class="wc-link-clear-any-filters">${ __(
'clearing any filters',
'woo-gutenberg-products-block'
) }</a>`,
},
],
[
'core/paragraph',
{
content: __(
'or head to our',
'woo-gutenberg-products-block'
),
},
],
[
'core/paragraph',
{
content: `<a href="#" class="wc-link-stores-home">${ __(
"store's home",
'woo-gutenberg-products-block'
) }</a>`,
},
],
],
],
],
],
Expand Down

0 comments on commit a606add

Please sign in to comment.