Skip to content

Commit 31e1ccc

Browse files
committed
small fixes
1 parent 501c815 commit 31e1ccc

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

dotcom-rendering/src/components/LabsSectionHeader.stories.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ type Story = StoryObj<typeof meta>;
4545

4646
export const Default: Story = {};
4747

48-
export const WithPageSkin: Story = {
49-
args: {
50-
hasPageSkin: true,
51-
},
52-
};
53-
5448
export const WithDetailsOpen: Story = {
5549
play: async ({ canvasElement }) => {
5650
const canvas = within(canvasElement);
@@ -60,3 +54,19 @@ export const WithDetailsOpen: Story = {
6054
);
6155
},
6256
};
57+
58+
export const WithPageSkin: Story = {
59+
args: {
60+
hasPageSkin: true,
61+
},
62+
render: (args) => (
63+
<div
64+
css={css`
65+
margin: 20px auto 100px;
66+
width: 600px;
67+
`}
68+
>
69+
<LabsSectionHeader {...args} />
70+
</div>
71+
),
72+
};

dotcom-rendering/src/components/LabsSectionHeader.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ const dividerStylesUntilLeftCol = css`
6262
`;
6363

6464
const dividerStylesFromLeftCol = css`
65-
margin-right: unset;
66-
::after {
67-
display: none;
65+
${from.leftCol} {
66+
margin-right: unset;
67+
::after {
68+
display: none;
69+
}
6870
}
6971
`;
7072

0 commit comments

Comments
 (0)