Skip to content

Commit 82abd9d

Browse files
committed
Fix footer layout issue introduced in migration
1 parent a7d2ce8 commit 82abd9d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/layout/footer/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,15 @@ export const StyledMenuWrapper = styled.div`
131131
132132
@media (min-width: ${screens.lg}) {
133133
display: none;
134-
gap: var(--menu-gapxl, 21px);
134+
gap: 21px;
135135
136136
&[data-display-on-desktop="true"] {
137137
display: flex;
138138
}
139+
140+
&[data-has-subheading="true"] {
141+
gap: 64px;
142+
}
139143
}
140144
`;
141145

@@ -288,7 +292,7 @@ export const Footer = ({ withoutNewsletter }: FooterProps) => {
288292
<StyledMenuWrapper
289293
data-display-on-mobile={String(displayOnMobile)}
290294
data-display-on-desktop={String(displayOnDesktop)}
291-
style={{ '--menu-gapxl': hasSubHeading ? '64px' : '21px' } as React.CSSProperties}
295+
data-has-subheading={String(hasSubHeading)}
292296
key={column.title}
293297
>
294298
<FooterColumnBlock column={column} />

0 commit comments

Comments
 (0)