Skip to content

Commit 931bec7

Browse files
author
Juarez Mota
committed
feat: add new colour codes to banner design types
1 parent de78bb6 commit 931bec7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/server/factories/bannerDesign.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ export default Factory.define<BannerDesignFromTool>(() => ({
6666
},
6767
},
6868
ticker: {
69-
text: stringToHexColour('052962'),
7069
filledProgress: stringToHexColour('052962'),
7170
progressBarBackground: stringToHexColour('ffffff'),
72-
goalMarker: stringToHexColour('000000'),
7371
headlineColour: stringToHexColour('000000'),
7472
totalColour: stringToHexColour('000000'),
7573
goalColour: stringToHexColour('000000'),

src/shared/types/props/design.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const choiceCardsSchema = z.object({
3333
buttonSelectColour: hexColourSchema.nullish(),
3434
buttonSelectTextColour: hexColourSchema.nullish(),
3535
buttonSelectBorderColour: hexColourSchema.nullish(),
36+
buttonSelectMarkerColour: hexColourSchema.nullish(),
37+
pillTextColour: hexColourSchema.nullish(),
38+
pillBackgroundColour: hexColourSchema.nullish(),
3639
kind: z.literal('ChoiceCards'),
3740
});
3841

@@ -88,10 +91,8 @@ export interface CtaDesign {
8891
}
8992

9093
interface TickerDesign {
91-
text: HexColour; //deprecated
9294
filledProgress: HexColour;
9395
progressBarBackground: HexColour;
94-
goalMarker: HexColour; //deprecated
9596
headlineColour: HexColour; //new
9697
totalColour: HexColour; //new
9798
goalColour: HexColour; //new
@@ -116,6 +117,9 @@ interface ChoiceCardsDesign {
116117
buttonSelectColour?: HexColour;
117118
buttonSelectTextColour?: HexColour;
118119
buttonSelectBorderColour?: HexColour;
120+
buttonSelectMarkerColour?: HexColour;
121+
pillTextColour?: HexColour;
122+
pillBackgroundColour?: HexColour;
119123
}
120124
type Visual = BannerDesignImage | ChoiceCardsDesign;
121125

0 commit comments

Comments
 (0)