11import { css } from '@emotion/react' ;
2- import { palette , space , textSans15 } from '@guardian/source/foundations' ;
2+ import { space , textSans15 } from '@guardian/source/foundations' ;
33import {
44 SvgChevronDownSingle ,
55 SvgChevronUpSingle ,
@@ -8,6 +8,7 @@ import { useState } from 'react';
88import type { ArticleFormat } from '../lib/articleFormat' ;
99import type { ProductBlockElement } from '../types/content' ;
1010import { HorizontalSummaryProductCard } from './HorizontalSummaryProductCard' ;
11+ import { palette } from '../palette' ;
1112
1213const showAllButtonStyles = css `
1314 background-color : transparent;
@@ -17,15 +18,17 @@ const showAllButtonStyles = css`
1718
1819const showAllTextStyles = css `
1920 ${ textSans15 } ;
20- color : ${ palette . lifestyle [ 400 ] } ;
21+ color : ${ palette ( '--product-card-read-more' ) } ;
2122 font- weight: 700;
22- bor der- botto m: 1px solid ${ palette . neutral [ 86 ] } ;
23+ text- decor ation- line: underline;
24+ text- decor ation- color : ${ palette ( '--product-card-read-more-decoration' ) } ;
25+ text- underline-offset: 20%;
2326 padding- right: ${ space [ 1 ] } px;
2427` ;
2528
2629const cardCounterStyles = css `
2730 ${ textSans15 } ;
28- color : ${ palette . neutral [ 46 ] } ;
31+ color : ${ palette ( '--product-card-count' ) } ;
2932 font- weight: 700;
3033` ;
3134
@@ -79,12 +82,16 @@ export const StackedProducts = ({
7982 { isExpanded ? (
8083 < SvgChevronUpSingle
8184 size = "xsmall"
82- theme = { { fill : palette . lifestyle [ 400 ] } }
85+ theme = { {
86+ fill : palette ( '--product-card-read-more' ) ,
87+ } }
8388 />
8489 ) : (
8590 < SvgChevronDownSingle
8691 size = "xsmall"
87- theme = { { fill : palette . lifestyle [ 400 ] } }
92+ theme = { {
93+ fill : palette ( '--product-card-read-more' ) ,
94+ } }
8895 />
8996 ) }
9097 </ button >
0 commit comments