@@ -43,7 +43,7 @@ export function WithFooterCallToAction() {
4343 return (
4444 < Banner
4545 title = "Some of your product variants are missing weights"
46- status = "warning"
46+ tone = "warning"
4747 action = { { content : 'Edit variant weights' , url : '' } }
4848 secondaryAction = { { content : 'Learn more' , url : '' } }
4949 onDismiss = { ( ) => { } }
@@ -62,7 +62,7 @@ export function Informational() {
6262 title = "USPS has updated their rates"
6363 action = { { content : 'Update rates' , url : '' } }
6464 secondaryAction = { { content : 'Learn more' } }
65- status = "info"
65+ tone = "info"
6666 onDismiss = { ( ) => { } }
6767 >
6868 < p > Make sure you know how these changes affect your store.</ p >
@@ -74,7 +74,7 @@ export function Success() {
7474 return (
7575 < Banner
7676 title = "Your shipping label is ready to print."
77- status = "success"
77+ tone = "success"
7878 action = { { content : 'Print label' } }
7979 onDismiss = { ( ) => { } }
8080 />
@@ -86,7 +86,7 @@ export function Warning() {
8686 < Banner
8787 title = "Before you can purchase a shipping label, this change needs to be made:"
8888 action = { { content : 'Edit address' } }
89- status = "warning"
89+ tone = "warning"
9090 >
9191 < List >
9292 < List . Item >
@@ -103,7 +103,7 @@ export function Critical() {
103103 < Banner
104104 title = "High risk of fraud detected"
105105 action = { { content : 'Review risk analysis' } }
106- status = "critical"
106+ tone = "critical"
107107 >
108108 < p >
109109 Before fulfilling this order or capturing payment, please{ ' ' }
@@ -139,7 +139,7 @@ export function InAModal() {
139139 >
140140 < Modal . Section >
141141 < TextContainer >
142- < Banner action = { { content : 'Connect account' } } status = "warning" >
142+ < Banner action = { { content : 'Connect account' } } tone = "warning" >
143143 < p >
144144 Connect your instagram account to your shop before proceeding.
145145 </ p >
@@ -165,7 +165,7 @@ export function WithFocus() {
165165 < Banner
166166 title = "High risk of fraud detected"
167167 onDismiss = { ( ) => { } }
168- status = "critical"
168+ tone = "critical"
169169 ref = { banner }
170170 >
171171 < p >
@@ -214,7 +214,7 @@ export function InALegacyCard() {
214214
215215export function WithEndJustifiedContent ( ) {
216216 return (
217- < Banner status = "critical" >
217+ < Banner tone = "critical" >
218218 < BlockStack gap = "1" >
219219 < InlineStack gap = "4" align = "space-between" >
220220 < Text variant = "headingMd" fontWeight = "semibold" as = "h3" >
@@ -233,7 +233,7 @@ export function WithEndJustifiedContent() {
233233export function HideIcon ( ) {
234234 return (
235235 < LegacyCard title = "Edit customer" sectioned >
236- < Banner status = "warning" hideIcon >
236+ < Banner tone = "warning" hideIcon >
237237 < Text as = "p" fontWeight = "semibold" >
238238 Changing the phone number for this customer will unsubscribe them from
239239 SMS marketing text messages until they provide consent.
@@ -246,7 +246,7 @@ export function HideIcon() {
246246export function CustomIcon ( ) {
247247 return (
248248 < Banner
249- status = "info"
249+ tone = "info"
250250 icon = { DiscountsMajor }
251251 title = "Choose a plan and your discount will be applied at checkout."
252252 />
@@ -408,25 +408,25 @@ function AllBanners(props) {
408408 />
409409 < Banner
410410 title = "Info"
411- status = "info"
411+ tone = "info"
412412 children = { < Text as = "p" > Info status</ Text > }
413413 { ...props }
414414 />
415415 < Banner
416416 title = "Success"
417- status = "success"
417+ tone = "success"
418418 children = { < Text as = "p" > Success status</ Text > }
419419 { ...props }
420420 />
421421 < Banner
422422 title = "Warning"
423- status = "warning"
423+ tone = "warning"
424424 children = { < Text as = "p" > Warning status</ Text > }
425425 { ...props }
426426 />
427427 < Banner
428428 title = "Critical"
429- status = "critical"
429+ tone = "critical"
430430 children = { < Text as = "p" > Critical status</ Text > }
431431 { ...props }
432432 />
0 commit comments