π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: custom theme input placeholder improvement (#4472)
Anmol Singh Bhatia3bfe0950eb5a
diff --git a/web/components/core/theme/custom-theme-selector.tsx b/web/components/core/theme/custom-theme-selector.tsxindex d7e115a191..dfd08de46c 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(() => {<Controllercontrol={control}name="background"- rules={inputRules}+ rules={{ ...inputRules, required: "Background color is required" }}render={({ field: { value, onChange } }) => (<InputColorPickername="background"value={value}onChange={(val) => 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(() => {<Controllercontrol={control}name="text"- rules={inputRules}+ rules={{ ...inputRules, required: "Text color is required" }}render={({ field: { value, onChange } }) => (<InputColorPickername="text"value={value}onChange={(val) => 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(() => {<Controllercontrol={control}name="primary"- rules={inputRules}+ rules={{ ...inputRules, required: "Primary color is required" }}render={({ field: { value, onChange } }) => (<InputColorPickername="primary"value={value}onChange={(val) => 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(() => {<Controllercontrol={control}name="sidebarBackground"- rules={inputRules}+ rules={{ ...inputRules, required: "Sidebar background color is required" }}render={({ field: { value, onChange } }) => (<InputColorPickername="sidebarBackground"value={value}onChange={(val) => 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(() => {<Controllercontrol={control}name="sidebarText"- rules={inputRules}+ rules={{ ...inputRules, required: "Sidebar text color is required" }}render={({ field: { value, onChange } }) => (<InputColorPickername="sidebarText"value={value}onChange={(val) => handleValueChange(val, onChange)}placeholder="#c5c5c5"- className="w-full"+ className="w-full placeholder:text-custom-text-400/60"style={{backgroundColor: watch("sidebarText"),color: watch("sidebarBackground"),