Skip to content

Commit 05bda76

Browse files
committed
Keep large margins for supporting on mobile
These margins were too small: the request from the visuals team is that they be 32px.
1 parent 135132f commit 05bda76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotcom-rendering/src/components/Figure.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const roleCss = (isDatawrapperGraphic: boolean) => {
2424

2525
supporting: css`
2626
clear: left;
27-
margin-top: ${space[3]}px;
28-
margin-bottom: ${isDatawrapperGraphic ? space[5] : space[3]}px;
27+
margin-top: ${space[isDatawrapperGraphic ? 8 : 3]}px;
28+
margin-bottom: ${space[isDatawrapperGraphic ? 8 : 3]}px;
2929
${isDatawrapperGraphic
3030
? `border-bottom: 1px solid ${themePalette(
3131
'--branding-border',
@@ -41,6 +41,7 @@ const roleCss = (isDatawrapperGraphic: boolean) => {
4141
margin-right: 20px;
4242
line-height: 0;
4343
margin-top: ${space[2]}px;
44+
${isDatawrapperGraphic ? `margin-bottom: ${space[5]}px;` : ''}
4445
}
4546
${from.leftCol} {
4647
margin-left: -160px;

0 commit comments

Comments
 (0)