From 1fe1596f9ddf609b8d9d2f30011b46a52501e22c Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Thu, 2 Mar 2023 14:23:38 +0530 Subject: [PATCH] style: color fixed --- .../app/components/issues/select/assignee.tsx | 20 ++++++------- apps/app/components/issues/select/date.tsx | 10 +++---- apps/app/components/issues/select/label.tsx | 28 +++++++++---------- .../app/components/issues/select/priority.tsx | 12 ++++---- apps/app/components/issues/select/state.tsx | 22 +++++++-------- 5 files changed, 44 insertions(+), 48 deletions(-) diff --git a/apps/app/components/issues/select/assignee.tsx b/apps/app/components/issues/select/assignee.tsx index 0926c1d6a..0cedee0cd 100644 --- a/apps/app/components/issues/select/assignee.tsx +++ b/apps/app/components/issues/select/assignee.tsx @@ -69,20 +69,20 @@ export const IssueAssigneeSelect: FC = ({ `flex items-center text-xs cursor-pointer border rounded-md shadow-sm duration-200 ${ open - ? "outline-none border-[#3F76FF] bg-[rgba(63,118,255,0.05)] ring-1 ring-[#3F76FF] " - : "hover:bg-[rgba(63,118,255,0.05)] " + ? "outline-none border-theme bg-theme/5 ring-1 ring-theme " + : "hover:bg-theme/5 " }` } > {value && value.length > 0 && Array.isArray(value) ? ( - {value.length} Assignees + {value.length} Assignees ) : ( - Assignee + Assignee )} @@ -101,10 +101,10 @@ export const IssueAssigneeSelect: FC = ({ className={`absolute z-10 max-h-52 min-w-[8rem] mt-1 px-2 py-2 text-xs rounded-md shadow-md overflow-auto border-none bg-white focus:outline-none`} > -
+
setQuery(event.target.value)} placeholder="Search for a person..." displayValue={(assigned: any) => assigned?.name} @@ -118,8 +118,8 @@ export const IssueAssigneeSelect: FC = ({ key={option.value} className={({ active }) => `${ - active ? "bg-[#E9ECEF]" : "" - } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-[#495057]` + active ? "bg-gray-200" : "" + } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-gray-500` } value={option.value} > @@ -132,9 +132,9 @@ export const IssueAssigneeSelect: FC = ({ {option.display}
= ({ value, onChange }) => ( `flex items-center text-xs cursor-pointer border rounded-md shadow-sm duration-200 ${ open - ? "outline-none border-[#3F76FF] bg-[rgba(63,118,255,0.05)] ring-1 ring-[#3F76FF] " - : "hover:bg-[rgba(63,118,255,0.05)] " + ? "outline-none border-theme bg-theme/5 ring-1 ring-theme " + : "hover:bg-theme/5 " }` } > {value ? ( <> - {value} + {value} ) : ( <> - Due Date + Due Date )} diff --git a/apps/app/components/issues/select/label.tsx b/apps/app/components/issues/select/label.tsx index 1f8590f5d..a1300b712 100644 --- a/apps/app/components/issues/select/label.tsx +++ b/apps/app/components/issues/select/label.tsx @@ -64,8 +64,8 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, `flex items-center text-xs cursor-pointer border rounded-md shadow-sm duration-200 ${ open - ? "outline-none border-[#3F76FF] bg-[rgba(63,118,255,0.05)] ring-1 ring-[#3F76FF] " - : "hover:bg-[rgba(63,118,255,0.05)] " + ? "outline-none border-theme bg-theme/5 ring-1 ring-theme " + : "hover:bg-theme/5 " }` } > @@ -76,12 +76,12 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, length={3} showLength /> - {value.length} Labels + {value.length} Labels ) : ( - - Label + + Label )} @@ -100,10 +100,10 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, className={`absolute z-10 max-h-52 min-w-[8rem] mt-1 px-2 py-2 text-xs rounded-md shadow-md overflow-auto border-none bg-white focus:outline-none`} > -
+
setQuery(event.target.value)} placeholder="Search for label..." displayValue={(assigned: any) => assigned?.name} @@ -122,8 +122,8 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, key={label.id} className={({ active }) => `${ - active ? "bg-[#E9ECEF]" : "" - } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-[#495057]` + active ? "bg-gray-200" : "" + } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-gray-600` } value={label.id} > @@ -164,8 +164,8 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, key={child.id} className={({ active }) => `${ - active ? "bg-[#E9ECEF]" : "" - } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-[#495057]` + active ? "bg-gray-200" : "" + } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-gray-600` } value={child.id} > @@ -203,12 +203,12 @@ export const IssueLabelSelect: React.FC = ({ setIsOpen, value, onChange, )}
diff --git a/apps/app/components/issues/select/priority.tsx b/apps/app/components/issues/select/priority.tsx index bfdda5b74..4a3c5fdba 100644 --- a/apps/app/components/issues/select/priority.tsx +++ b/apps/app/components/issues/select/priority.tsx @@ -21,17 +21,15 @@ export const IssuePrioritySelect: React.FC = ({ value, onChange }) => ( className={({ open }) => `flex items-center text-xs cursor-pointer border rounded-md shadow-sm duration-200 ${ - open - ? "outline-none border-[#3F76FF] bg-[rgba(63,118,255,0.05)] ring-1 ring-[#3F76FF] " - : "hover:bg-[rgba(63,118,255,0.05)]" + open ? "outline-none border-theme bg-theme/5 ring-1 ring-theme " : "hover:bg-theme/5" }` } > - {getPriorityIcon(value, `${value ? "text-xs" : "text-xs text-[#858E96]"}`)} + {getPriorityIcon(value, `${value ? "text-xs" : "text-xs text-gray-500"}`)} - + {value ?? "Priority"} @@ -57,8 +55,8 @@ export const IssuePrioritySelect: React.FC = ({ value, onChange }) => ( key={priority} className={({ active }) => `${ - active ? "bg-[#E9ECEF]" : "" - } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-[#495057]` + active ? "bg-gray-200" : "" + } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-gray-600` } value={priority} > diff --git a/apps/app/components/issues/select/state.tsx b/apps/app/components/issues/select/state.tsx index e94a24999..41f498ec0 100644 --- a/apps/app/components/issues/select/state.tsx +++ b/apps/app/components/issues/select/state.tsx @@ -69,9 +69,7 @@ export const IssueStateSelect: React.FC = ({ setIsOpen, value, onChange, className={({ open }) => `flex items-center text-xs cursor-pointer border rounded-md shadow-sm duration-200 ${ - open - ? "outline-none border-[#3F76FF] bg-[rgba(63,118,255,0.05)] ring-1 ring-[#3F76FF] " - : "hover:bg-[rgba(63,118,255,0.05)]" + open ? "outline-none border-theme bg-theme/5 ring-1 ring-theme " : "hover:bg-theme/5" }` } > @@ -80,12 +78,12 @@ export const IssueStateSelect: React.FC = ({ setIsOpen, value, onChange, {currentOption && currentOption.group ? getStateGroupIcon(currentOption.group, "16", "16", currentOption.color) : ""} - {currentOption?.display} + {currentOption?.display} ) : ( - {currentOption?.display || "State"} + {currentOption?.display || "State"} )} @@ -104,10 +102,10 @@ export const IssueStateSelect: React.FC = ({ setIsOpen, value, onChange, className={`absolute z-10 max-h-52 min-w-[8rem] mt-1 px-2 py-2 text-xs rounded-md shadow-md overflow-auto border-none bg-white focus:outline-none`} > -
+
setQuery(event.target.value)} placeholder="Search States" displayValue={(assigned: any) => assigned?.name} @@ -121,8 +119,8 @@ export const IssueStateSelect: React.FC = ({ setIsOpen, value, onChange, key={option.value} className={({ active }) => `${ - active ? "bg-[#E9ECEF]" : "" - } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-[#495057]` + active ? "bg-gray-200" : "" + } group flex min-w-[14rem] cursor-pointer select-none items-center gap-2 truncate rounded px-1 py-1.5 text-gray-600` } value={option.value} > @@ -151,12 +149,12 @@ export const IssueStateSelect: React.FC = ({ setIsOpen, value, onChange, )}