Skip to content

Commit d124a5a

Browse files
authored
Merge pull request #14770 from guardian/jm/banner-colour-palettes
set the unselected choice card text colour straight
2 parents ad24e67 + 279a8a1 commit d124a5a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

dotcom-rendering/src/components/marketing/shared/ThreeTierChoiceCards.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ const benefitsLabelStyles = (customColor?: string) => css`
5858
}
5959
`;
6060

61-
const labelOverrideStyles = (isSelected: boolean) => css`
62-
+ label div {
63-
${isSelected ? 'font-weight: bold;' : ''}
64-
s {
65-
font-weight: normal;
66-
}
67-
}
68-
`;
69-
7061
const supportingTextStyles = css`
7162
margin-top: ${space[4]}px;
7263
`;
@@ -166,6 +157,18 @@ export const ThreeTierChoiceCards = ({
166157
: `6px ${space[5]}px`};
167158
`;
168159

160+
const labelOverrideStyles = (isSelected: boolean) => css`
161+
+ label div {
162+
${isSelected ? 'font-weight: bold;' : ''}
163+
color: ${isSelected
164+
? choiceCardSettings?.buttonSelectTextColour ?? 'inherit'
165+
: choiceCardSettings?.buttonTextColour ?? 'inherit'};
166+
s {
167+
font-weight: normal;
168+
}
169+
}
170+
`;
171+
169172
const customRadioTheme: ThemeRadio = {
170173
...themeRadio,
171174
borderSelected:

0 commit comments

Comments
 (0)