From 3bfe0950eb5ab2ff1054b263879a2f8c9b4ed409 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 16 May 2024 04:39:26 +0530 Subject: [PATCH] chore: custom theme input placeholder improvement (#4472) --- .../core/theme/custom-theme-selector.tsx | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/web/components/core/theme/custom-theme-selector.tsx b/web/components/core/theme/custom-theme-selector.tsx index d7e115a19..dfd08de46 100644 --- a/web/components/core/theme/custom-theme-selector.tsx +++ b/web/components/core/theme/custom-theme-selector.tsx @@ -9,7 +9,6 @@ import { Button, InputColorPicker, setPromiseToast } from "@plane/ui"; import { useUserProfile } from "@/hooks/store"; const inputRules = { - required: "Background color is required", minLength: { value: 7, message: "Enter a valid hex code of 6 characters", @@ -96,14 +95,14 @@ export const CustomThemeSelector: React.FC = observer(() => { ( handleValueChange(val, onChange)} placeholder="#0d101b" - className="w-full" + className="w-full placeholder:text-custom-text-400/60" style={{ backgroundColor: watch("background"), color: watch("text"), @@ -122,14 +121,14 @@ export const CustomThemeSelector: React.FC = observer(() => { ( handleValueChange(val, onChange)} placeholder="#c5c5c5" - className="w-full" + className="w-full placeholder:text-custom-text-400/60" style={{ backgroundColor: watch("text"), color: watch("background"), @@ -148,14 +147,14 @@ export const CustomThemeSelector: React.FC = observer(() => { ( handleValueChange(val, onChange)} placeholder="#3f76ff" - className="w-full" + className="w-full placeholder:text-custom-text-400/60" style={{ backgroundColor: watch("primary"), color: watch("text"), @@ -174,14 +173,14 @@ export const CustomThemeSelector: React.FC = observer(() => { ( handleValueChange(val, onChange)} placeholder="#0d101b" - className="w-full" + className="w-full placeholder:text-custom-text-400/60" style={{ backgroundColor: watch("sidebarBackground"), color: watch("sidebarText"), @@ -202,14 +201,14 @@ export const CustomThemeSelector: React.FC = observer(() => { ( handleValueChange(val, onChange)} placeholder="#c5c5c5" - className="w-full" + className="w-full placeholder:text-custom-text-400/60" style={{ backgroundColor: watch("sidebarText"), color: watch("sidebarBackground"),