diff --git a/src/components/customerCases/customerCase/CustomerCase.tsx b/src/components/customerCases/customerCase/CustomerCase.tsx
index 521cb7f01..5a495d814 100644
--- a/src/components/customerCases/customerCase/CustomerCase.tsx
+++ b/src/components/customerCases/customerCase/CustomerCase.tsx
@@ -29,7 +29,7 @@ export default async function CustomerCase({
{consultantsResult.ok && (
diff --git a/src/components/customerCases/customerCase/projectInfo/CustomerCaseProjectInfo.tsx b/src/components/customerCases/customerCase/projectInfo/CustomerCaseProjectInfo.tsx
index e597d50d3..9475d3dd2 100644
--- a/src/components/customerCases/customerCase/projectInfo/CustomerCaseProjectInfo.tsx
+++ b/src/components/customerCases/customerCase/projectInfo/CustomerCaseProjectInfo.tsx
@@ -40,7 +40,7 @@ export default async function CustomerCaseProjectInfo({
{projectInfo.customerSectors.map((sector: CustomerSector) => (
{sector.customerSector}
diff --git a/studioShared/lib/interfaces/customerCases.ts b/studioShared/lib/interfaces/customerCases.ts
index 16cd36f94..20d165266 100644
--- a/studioShared/lib/interfaces/customerCases.ts
+++ b/studioShared/lib/interfaces/customerCases.ts
@@ -61,8 +61,7 @@ export interface CustomerCaseBase {
}
export interface CustomerCaseClientColors {
- title?: string;
- badge?: string;
+ color?: string;
badgeText?: string;
}
diff --git a/studioShared/lib/queries/customerCases.ts b/studioShared/lib/queries/customerCases.ts
index 5b8dacf55..024976b4e 100644
--- a/studioShared/lib/queries/customerCases.ts
+++ b/studioShared/lib/queries/customerCases.ts
@@ -23,8 +23,7 @@ const CUSTOMER_CASE_BASE_FRAGMENT = groq`
${INTERNATIONALIZED_IMAGE_FRAGMENT}
},
"clientColors": {
- "title": clientColorTitle.hex,
- "badge": clientColorBadge.hex,
+ "color": clientColor.hex,
"badgeText": clientColorBadgeText.hex
}
`;
diff --git a/studioShared/schemas/documents/customerCase.ts b/studioShared/schemas/documents/customerCase.ts
index ed6429bed..43d2499e5 100644
--- a/studioShared/schemas/documents/customerCase.ts
+++ b/studioShared/schemas/documents/customerCase.ts
@@ -47,25 +47,22 @@ const customerCase = defineType({
}),
defineField({ ...domainsField, validation: (rule) => rule.required() }),
defineField({
- name: "clientColorTitle",
+ name: "clientColor",
type: "color",
- title: "Client Color (Title)",
- description: "This color will be used for parts of the title",
- options: { disableAlpha: true },
- }),
- defineField({
- name: "clientColorBadge",
- type: "color",
- title: "Client Color (Badge)",
- description: "This color will be used for the badges under project info",
+ title: "Client Color (Title & Badges)",
+ description: "This color will be used for parts of the title and badges",
options: { disableAlpha: true },
}),
defineField({
name: "clientColorBadgeText",
type: "color",
title: "Client Color (Badge Text)",
- description: "This color will be used for the text on the badges",
- options: { disableAlpha: true },
+ description:
+ "This color will be used for the text on the badges. There are predefined colors for text in the component",
+ options: {
+ disableAlpha: true,
+ colorList: ["#222424", "#faf8f5"],
+ },
}),
defineField({
name: "description",