Skip to content

Commit 1dfc629

Browse files
authored
Merge pull request #3523 from Shopify/footerHelp-resourceList
Add patterns for Footer Help and Resource List. Change aria-labels for accessibilityLabel on button and clickable where applicable. Fix typo to Setup guide. Added comment to guide LLM to match image's aspect ratio to actual width and height.
2 parents 5abf678 + c3d4e3f commit 1dfc629

File tree

18 files changed

+245
-7
lines changed

18 files changed

+245
-7
lines changed
8.18 KB
Loading
30.1 KB
Loading

packages/ui-extensions/src/surfaces/admin/components/patterns/emptyState.ab.doc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ const data: ReferenceEntityTemplateSchema = {
2626
code: 'examples/emptyState.html',
2727
language: 'preview',
2828
},
29+
{
30+
title: 'jsx',
31+
code: 'examples/emptyState.jsx',
32+
language: 'preview-jsx',
33+
},
2934
],
3035
},
3136
},

packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
borderRadius="base"
55
padding="base"
66
inlineSize="100%"
7-
accessibilityLabel="Download Shopify Planet"
87
>
98
<s-grid gridTemplateColumns="auto 1fr auto" alignItems="stretch" gap="base">
109
<s-thumbnail

packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
borderRadius="base"
55
padding="base"
66
inlineSize="100%"
7-
accessibilityLabel="Download Shopify Planet"
87
>
98
<s-grid gridTemplateColumns="auto 1fr auto" alignItems="stretch" gap="base">
109
<s-thumbnail

packages/ui-extensions/src/surfaces/admin/components/patterns/examples/emptyState.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<s-section accessibilityLabel="Empty state section">
22
<s-grid gap="base" justifyItems="center" paddingBlock="large-400">
33
<s-box maxInlineSize="200px" maxBlockSize="200px">
4+
<!-- aspectRatio should match the actual image dimensions (width/height) -->
45
<s-image
56
aspectRatio="1/0.5"
67
src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"

packages/ui-extensions/src/surfaces/admin/components/patterns/examples/emptyState.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<s-section accessibilityLabel="Empty state section">
22
<s-grid gap="base" justifyItems="center" paddingBlock="large-400">
33
<s-box maxInlineSize="200px" maxBlockSize="200px">
4+
{/* aspectRatio should match the actual image dimensions (width/height) */}
45
<s-image
56
aspectRatio="1/0.5"
67
src="https://cdn.shopify.com/static/images/polaris/patterns/callout.png"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<s-stack alignItems="center">
2+
<s-text>Learn more about <s-link href="">creating puzzles</s-link>.</s-text>
3+
</s-stack>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<s-stack alignItems="center">
2+
<s-text>Learn more about <s-link href="">creating puzzles</s-link>.</s-text>
3+
</s-stack>

packages/ui-extensions/src/surfaces/admin/components/patterns/examples/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<s-section accessibilityLabel="Empty state section">
2222
<s-grid gap="base" justifyItems="center" paddingBlock="large-400">
2323
<s-box maxInlineSize="200px" maxBlockSize="200px">
24+
<!-- aspectRatio should match the actual image dimensions (width/height) -->
2425
<s-image
2526
maxInlineSize="200px"
2627
maxBlockSize="200px"

0 commit comments

Comments
 (0)