Skip to content

Commit 2d0cbbb

Browse files
committed
Fix light and dark mode colors for lineups component
1 parent 27cddae commit 2d0cbbb

File tree

4 files changed

+188
-178
lines changed

4 files changed

+188
-178
lines changed

dotcom-rendering/fixtures/generated/match-report.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ export const matchReport: MatchReportType = {
275275
corners: 10,
276276
fouls: 4,
277277
colours: '#01009a',
278-
// colours: '#fff', // #fef502
279278
crest: 'https://sport.guim.co.uk/football/crests/120/7699.png',
280279
},
281280
awayTeam: {

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import { css } from '@emotion/react';
12
import type { Meta, StoryObj } from '@storybook/react-webpack5';
23
import { allModes } from '../../.storybook/modes';
34
import { matchReport } from '../../fixtures/generated/match-report';
5+
import { grid } from '../grid';
6+
import { palette } from '../palette';
47
import { type TeamType } from '../types/sport';
58
import { Lineups as LineupsComponent } from './Lineups';
69

@@ -18,6 +21,26 @@ const meta = {
1821
},
1922
},
2023
},
24+
decorators: [
25+
(Story) => (
26+
<div
27+
css={css`
28+
background-color: ${palette(
29+
'--football-match-info-background',
30+
)};
31+
${grid.paddedContainer}
32+
`}
33+
>
34+
<div
35+
css={css`
36+
${grid.column.centre}
37+
`}
38+
>
39+
<Story />
40+
</div>
41+
</div>
42+
),
43+
],
2144
} satisfies Meta<typeof LineupsComponent>;
2245

2346
export default meta;

0 commit comments

Comments
 (0)