Skip to content

Commit

Permalink
vr
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielpereirapinheiro committed Jan 6, 2025
1 parent 836681b commit 308ffec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/gestalt/src/BannerUpsell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ export default function BannerUpsell({
const hasActions = Boolean(primaryAction || secondaryAction);
const { colorSchemeName } = useColorScheme();
const isDarkMode = colorSchemeName === 'darkMode';
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
});
// const isInVRExperiment = useInExperiment({
// webExperimentName: 'web_gestalt_visualRefresh',
// mwebExperimentName: 'web_gestalt_visualRefresh',
// });
const isInVRExperiment = true
let messageElement: ReactNode;

if (typeof message === 'string') {
Expand Down Expand Up @@ -228,7 +229,7 @@ export default function BannerUpsell({
marginBottom="auto"
marginEnd={0}
marginStart={0}
marginTop="auto"
marginTop={isInVRExperiment ? undefined : 'auto'}
smDisplay="block"
smMarginEnd={6}
smMarginStart={imageData ? 6 : 0}
Expand Down Expand Up @@ -262,7 +263,7 @@ export default function BannerUpsell({
)}
</Box>
{!children && isInVRExperiment && hasActions && (
<Box marginStart="auto" smDisplay="flex" smMarginEnd={4} smPaddingY={3}>
<Box marginStart="auto" smDisplay="flex" smMarginEnd={4} smPaddingY={isInVRExperiment ? 0 : 3}>
{secondaryAction && responsiveMinWidth !== 'xs' && (
<UpsellAction data={secondaryAction} type="secondary" />
)}
Expand Down

0 comments on commit 308ffec

Please sign in to comment.