Skip to content

Commit 1c08ba9

Browse files
JamieB-gumarjisound
andcommitted
Use colourSchemeBackground parameter
For web meta component stories. Co-authored-by: Marjan Kalanaki <[email protected]>
1 parent 7d06a2c commit 1c08ba9

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

dotcom-rendering/src/components/ArticleMeta.apps.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
getAllThemes,
99
Pillar,
1010
} from '../lib/articleFormat';
11-
import { ArticleMetaApps } from './ArticleMeta.apps';
1211
import { palette } from '../palette';
12+
import { ArticleMetaApps } from './ArticleMeta.apps';
1313

1414
const meta = {
1515
component: ArticleMetaApps,

dotcom-rendering/src/components/ArticleMeta.apps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isUndefined } from '@guardian/libs';
33
import { from, space, until } from '@guardian/source/foundations';
44
import { StraightLines } from '@guardian/source-development-kitchen/react-components';
55
import type { ReactNode } from 'react';
6+
import { grid } from '../grid';
67
import { interactiveLegacyClasses } from '../layouts/lib/interactiveLegacyStyling';
78
import {
89
ArticleDesign,
@@ -22,7 +23,6 @@ import { Dateline } from './Dateline';
2223
import { FollowWrapper } from './FollowWrapper.importable';
2324
import { Island } from './Island';
2425
import { LiveblogNotifications } from './LiveblogNotifications.importable';
25-
import { grid } from '../grid';
2626

2727
type Props = {
2828
format: ArticleFormat;

dotcom-rendering/src/components/ArticleMeta.web.stories.tsx

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -343,21 +343,10 @@ export const GalleryDesign = {
343343
display: ArticleDisplay.Standard,
344344
design: ArticleDesign.Gallery,
345345
}),
346+
colourSchemeBackground: {
347+
light: palette('--article-background'),
348+
dark: palette('--article-background'),
349+
},
346350
},
347-
decorators: [
348-
leftColumnDecorator,
349-
(Story) => (
350-
<div
351-
css={css`
352-
background-color: ${sourcePalette.neutral[7]}};
353-
354-
${from.desktop} {
355-
background-color: inherit;
356-
}
357-
`}
358-
>
359-
<Story />
360-
</div>
361-
),
362-
],
351+
decorators: [leftColumnDecorator],
363352
} satisfies Story;

dotcom-rendering/src/layouts/GalleryLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { css } from '@emotion/react';
22
import { from } from '@guardian/source/foundations';
33
import { ArticleHeadline } from '../components/ArticleHeadline';
4+
import { ArticleMetaApps } from '../components/ArticleMeta.apps';
45
import { ArticleMeta } from '../components/ArticleMeta.web';
56
import { ArticleTitle } from '../components/ArticleTitle';
67
import { MainMediaGallery } from '../components/MainMediaGallery';
@@ -12,7 +13,6 @@ import type { NavType } from '../model/extract-nav';
1213
import { palette } from '../palette';
1314
import type { Gallery } from '../types/article';
1415
import type { RenderingTarget } from '../types/renderingTarget';
15-
import { ArticleMetaApps } from '../components/ArticleMeta.apps';
1616

1717
interface Props {
1818
gallery: Gallery;

0 commit comments

Comments
 (0)