From d11ca453fd1cd3c1784ba4685badd4b2cdf79b8f Mon Sep 17 00:00:00 2001
From: Alberto Carreras <10593890+AlbertCarreras@users.noreply.github.com>
Date: Wed, 6 Nov 2024 19:57:03 +0100
Subject: [PATCH] BannerUpsell: removed max witdh for message (#3860)
---
packages/gestalt/src/BannerUpsell.tsx | 26 ++-
.../__snapshots__/BannerUpsell.test.tsx.snap | 188 ++++++------------
2 files changed, 70 insertions(+), 144 deletions(-)
diff --git a/packages/gestalt/src/BannerUpsell.tsx b/packages/gestalt/src/BannerUpsell.tsx
index f27cdb690d..cdfee6ab32 100644
--- a/packages/gestalt/src/BannerUpsell.tsx
+++ b/packages/gestalt/src/BannerUpsell.tsx
@@ -229,20 +229,18 @@ export default function BannerUpsell({
smMarginEnd={6}
smMarginStart={imageData ? 6 : 0}
>
-
- {title && (
-
-
- {title}
-
-
- )}
- {messageElement}
-
+ {title && (
+
+
+ {title}
+
+
+ )}
+ {messageElement}
{children && (
Basic BannerUpsell 1`] = `
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
-
+ Insert a clever upsell message here
@@ -89,28 +80,19 @@ exports[` message + title + dismissButton + image + form 1`] = `
className="box flexGrow marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart600 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title + primaryAction + dismissButton + imag
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart600 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title + primaryAction + dismissButton 1`] =
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title + primaryAction + secondaryAction 1`]
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title + primaryAction with href 1`] = `
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title + primaryAction without href 1`] = `
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+
message + title 1`] = `
className="box marginBottomAuto marginEnd0 marginStart0 marginTopAuto smDisplayBlock smMarginEnd600 smMarginStart0 xsDirectionColumn xsDisplayFlex xsItemsCenter"
>
-
- Insert a clever upsell message here
+ A Title
+
+ Insert a clever upsell message here
+