Skip to content

Commit

Permalink
Keep large margins for supporting on mobile
Browse files Browse the repository at this point in the history
These margins were too small: the request from the visuals team is that
they be 32px.
  • Loading branch information
emdash-ie committed Oct 21, 2024
1 parent 135132f commit 05bda76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotcom-rendering/src/components/Figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const roleCss = (isDatawrapperGraphic: boolean) => {

supporting: css`
clear: left;
margin-top: ${space[3]}px;
margin-bottom: ${isDatawrapperGraphic ? space[5] : space[3]}px;
margin-top: ${space[isDatawrapperGraphic ? 8 : 3]}px;
margin-bottom: ${space[isDatawrapperGraphic ? 8 : 3]}px;
${isDatawrapperGraphic
? `border-bottom: 1px solid ${themePalette(
'--branding-border',
Expand All @@ -41,6 +41,7 @@ const roleCss = (isDatawrapperGraphic: boolean) => {
margin-right: 20px;
line-height: 0;
margin-top: ${space[2]}px;
${isDatawrapperGraphic ? `margin-bottom: ${space[5]}px;` : ''}
}
${from.leftCol} {
margin-left: -160px;
Expand Down

0 comments on commit 05bda76

Please sign in to comment.