You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/ActionList/README.md
+21-42Lines changed: 21 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,60 +91,39 @@ Each item in an action list should be scannable avoiding unnecessary words and a
91
91
Use for the least important actions so the merchant isn’t distracted by secondary tasks. Can also be used for a set of actions that won’t fit in the available screen space.
92
92
93
93
```jsx
94
-
<div style={{height:'200px'}}>
95
-
<Popover
96
-
active
97
-
activator={<Button>Actions</Button>}
98
-
>
99
-
<ActionList
100
-
items={[
101
-
{content:'Import file'},
102
-
{content:'Export file'},
103
-
]}
104
-
/>
105
-
</Popover>
106
-
</div>
94
+
<ActionList
95
+
items={[
96
+
{content:'Import file'},
97
+
{content:'Export file'},
98
+
]}
99
+
/>
107
100
```
108
101
109
102
### Action list with icons or image
110
103
111
104
Use when the items benefit from an associated action or image (e.g. a list of products).
112
105
113
106
```jsx
114
-
<div style={{height:'200px'}}>
115
-
<Popover
116
-
active
117
-
activator={<Button>Actions</Button>}
118
-
>
119
-
<ActionList
120
-
items={[
121
-
{content:'Import file', icon:'import'},
122
-
{content:'Export file', icon:'export'},
123
-
]}
124
-
/>
125
-
</Popover>
126
-
</div>
107
+
<ActionList
108
+
items={[
109
+
{content:'Import file', icon:'import'},
110
+
{content:'Export file', icon:'export'},
111
+
]}
112
+
/>
127
113
```
128
114
129
115
### Sectioned action list
130
116
131
117
Use when the items benefit from sections to help differentiate actions.
Copy file name to clipboardExpand all lines: src/components/Banner/README.md
+2-9Lines changed: 2 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ Banners are a highly visible way to bring something to a merchant’s attention.
26
26
> **Not what you’re looking for?**
27
27
>* To inform merchants about a new feature or opportunity, [use callout cards](components/structure/callout-card).
28
28
>* To group similar concepts together in the interface, [use a card](/components/structure/card).
29
-
>* To show a transient confirmation that an action was successful, [use a flash message](/components/feedback-indicators/flash-message).
30
29
31
30
---
32
31
@@ -224,10 +223,7 @@ including packaging.
224
223
Use to convey general information or actions that aren’t critical. For example, you might show a banner that asks for merchant feedback. Default banners contain lower priority information and should always be dismissible.
225
224
226
225
```jsx
227
-
<Banner
228
-
title="Order archived"
229
-
onDismiss={() => {console.log('dismissed')}}
230
-
>
226
+
<Banner title="Order archived">
231
227
<p>This order was archived on March 7, 2017 at 3:12pmEDT.</p>
232
228
</Banner>
233
229
```
@@ -237,7 +233,7 @@ Use to convey general information or actions that aren’t critical. For example
237
233
Make all banners dismissible, unless they contain critical information or an important action that a merchant is required to take.
Copy file name to clipboardExpand all lines: src/components/Layout/README.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,19 +203,21 @@ Use to follow a normal section with a secondary section to create a 2/3 + 1/3 la
203
203
Use for settings pages. When settings are grouped thematically in annotated sections, the title and description on each section helps merchants quickly find the setting they’re looking for.
204
204
205
205
```jsx
206
-
<Layout.AnnotatedSection
207
-
title="Store details"
208
-
description="Shopify and your customers will use this information to contact you.">
209
-
<Card sectioned>
210
-
<FormLayout>
211
-
<TextField
212
-
label="Store name"
213
-
/>
214
-
<TextField
215
-
type="email"
216
-
label="Account email"
217
-
/>
218
-
</FormLayout>
219
-
</Card>
220
-
</Layout.AnnotatedSection>
206
+
<Layout>
207
+
<Layout.AnnotatedSection
208
+
title="Store details"
209
+
description="Shopify and your customers will use this information to contact you.">
0 commit comments