From e2e191e9420a2a4edf6df413aecaeaf1551a84fb Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Fri, 5 Jul 2024 11:20:53 +0100 Subject: [PATCH] add changes request on colour picker --- editor.planx.uk/src/ui/editor/ColorPicker.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/ui/editor/ColorPicker.tsx b/editor.planx.uk/src/ui/editor/ColorPicker.tsx index 301ebb1386..3f56a4e996 100644 --- a/editor.planx.uk/src/ui/editor/ColorPicker.tsx +++ b/editor.planx.uk/src/ui/editor/ColorPicker.tsx @@ -11,7 +11,7 @@ export interface Props { label?: string; inline?: boolean; color?: string; - errorMessage?: string | undefined; + errorMessage?: string; onChange?: (newColor: string) => void; } @@ -96,7 +96,10 @@ export default function ColorPicker(props: Props): FCReturn { }; return ( - + {props.label || "Background colour"}:{" "}