Skip to content

Commit e8a2dbb

Browse files
committed
Use zero right-margin on final card in scrollable highlights
1 parent b5afbe1 commit e8a2dbb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dotcom-rendering/src/components/ScrollableHighlights.importable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const itemStyles = css`
7171
margin: ${space[3]}px 10px;
7272
:first-child {
7373
${from.tablet} {
74-
margin-left: 0px;
74+
margin-left: 0;
7575
}
7676
7777
/**
@@ -87,6 +87,9 @@ const itemStyles = css`
8787
margin-left: 240px; /** 240 === 3 columns and 3 column gaps */
8888
}
8989
}
90+
:last-child {
91+
margin-right: 0;
92+
}
9093
`;
9194

9295
const verticalLineStyles = css`
@@ -172,6 +175,7 @@ const getOphanInfo = (frontId?: string) => {
172175
const ophanComponentName = ophanComponentId('highlights');
173176
const ophanComponentLink = `container-${0} | ${ophanComponentName}`;
174177
const ophanFrontName = `Front | /${frontId}`;
178+
175179
return {
176180
ophanComponentName,
177181
ophanComponentLink,

0 commit comments

Comments
 (0)