Skip to content

Commit 37d0ded

Browse files
authored
Merge pull request #14480 from guardian/tf-wrap-ctas
Wrap banner ctas if too narrow
2 parents 2e7ae8c + 418de61 commit 37d0ded

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
@@ -972,6 +972,7 @@ const styles = {
972972
973973
.maybe-later & {
974974
flex-direction: row;
975+
flex-wrap: wrap;
975976
padding: ${space[3]}px;
976977
}
977978
@@ -987,7 +988,7 @@ const styles = {
987988
margin-left: -${space[3]}px;
988989
989990
a {
990-
width: calc(100% - 24px);
991+
flex: 1 1 0;
991992
}
992993
}
993994
@@ -1031,7 +1032,7 @@ const styles = {
10311032
margin-bottom: ${space[2]}px;
10321033
`,
10331034
maybeLaterButtonSizing: css`
1034-
width: 142px;
1035+
flex: 1 1 0;
10351036
${from.desktop} {
10361037
width: 118px;
10371038
}

0 commit comments

Comments
 (0)