Skip to content

Commit e1cee7f

Browse files
authored
Merge pull request #14959 from guardian/jm/fix-cta-too-narrow
Simplify button container margins and adjust padding for maybe later
2 parents b6fe5a8 + 2055492 commit e1cee7f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,7 @@ const styles = {
878878
flex-direction: row;
879879
gap: ${space[2]}px;
880880
justify-content: stretch;
881-
margin-left: ${space[2]}px;
882-
margin-right: ${space[2]}px;
881+
margin: 0;
883882
884883
> a {
885884
flex: 1 0 100%;
@@ -888,8 +887,6 @@ const styles = {
888887
889888
${from.tablet} {
890889
justify-content: center;
891-
margin-left: 0px;
892-
margin-right: 0px;
893890
max-width: 100%;
894891
}
895892
@@ -899,7 +896,6 @@ const styles = {
899896
flex: 1 0 50%;
900897
justify-self: stretch;
901898
}
902-
margin-left: 0px;
903899
flex-direction: row;
904900
flex-wrap: nowrap;
905901
justify-content: start;
@@ -988,7 +984,12 @@ const styles = {
988984
.maybe-later & {
989985
flex-direction: row;
990986
flex-wrap: wrap;
991-
padding: ${space[3]}px 0;
987+
padding: ${space[3]}px;
988+
989+
${from.phablet} {
990+
flex-direction: row;
991+
padding: ${space[3]}px 0;
992+
}
992993
}
993994
994995
${until.phablet} {

0 commit comments

Comments
 (0)