Skip to content

Commit a9d45c0

Browse files
sticky continue button on tablet and phablet if copy is too long
1 parent 0547085 commit a9d45c0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -772,16 +772,25 @@ const styles = {
772772
box-shadow: 0 -${space[1]}px ${space[3]}px 0 rgba(0, 0, 0, 0.25);
773773
margin-right: -${space[3]}px;
774774
margin-left: -${space[3]}px;
775-
}
776775
777-
${until.phablet} {
778776
a {
779777
width: calc(100% - 24px);
780778
}
779+
}
780+
781+
${between.phablet.and.desktop} {
782+
position: sticky;
783+
bottom: 0;
781784
padding-top: ${space[3]}px;
785+
padding-bottom: ${space[3]}px;
786+
margin-right: -${space[3]}px;
787+
margin-left: -${space[3]}px;
788+
a {
789+
width: 100%;
790+
}
782791
}
783792
784-
${from.phablet} {
793+
${from.desktop} {
785794
grid-column: 3;
786795
flex-direction: row;
787796
gap: 0;

0 commit comments

Comments
 (0)