Skip to content

Commit 418de61

Browse files
committed
Wrap banner ctas if too narrow
1 parent b5448a5 commit 418de61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotcom-rendering/src/components/marketing/banners/designableBanner/DesignableBanner.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ const styles = {
978978
979979
.maybe-later & {
980980
flex-direction: row;
981+
flex-wrap: wrap;
981982
padding: ${space[3]}px;
982983
}
983984
@@ -993,7 +994,7 @@ const styles = {
993994
margin-left: -${space[3]}px;
994995
995996
a {
996-
width: calc(100% - 24px);
997+
flex: 1 1 0;
997998
}
998999
}
9991000
@@ -1037,7 +1038,7 @@ const styles = {
10371038
margin-bottom: ${space[2]}px;
10381039
`,
10391040
maybeLaterButtonSizing: css`
1040-
width: 142px;
1041+
flex: 1 1 0;
10411042
${from.desktop} {
10421043
width: 118px;
10431044
}

0 commit comments

Comments
 (0)