π₯π₯π₯ 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: urgent priority icon improvement (#5879)
Anmol Singh Bhatia8a1d3c4cf962
diff --git a/packages/ui/src/icons/priority-icon.tsx b/packages/ui/src/icons/priority-icon.tsxindex ffa74a3747..b2fb2d5342 100644--- a/packages/ui/src/icons/priority-icon.tsx+++ b/packages/ui/src/icons/priority-icon.tsx@@ -16,7 +16,7 @@ export const PriorityIcon: React.FC<IPriorityIcon> = (props) => {const { priority, className = "", containerClassName = "", size = 14, withContainer = false } = props;const priorityClasses = {- urgent: "bg-red-600 text-red-500 border-red-600",+ urgent: "bg-red-600/20 text-red-600 border-red-600",high: "bg-orange-500/20 text-orange-500 border-orange-500",medium: "bg-yellow-500/20 text-yellow-500 border-yellow-500",low: "bg-custom-primary-100/20 text-custom-primary-100 border-custom-primary-100",@@ -49,8 +49,6 @@ export const PriorityIcon: React.FC<IPriorityIcon> = (props) => {size={size}className={cn({- "text-white": priority === "urgent",- // centre align the icons"translate-x-[0.0625rem]": priority === "high","translate-x-0.5": priority === "medium","translate-x-1": priority === "low",diff --git a/web/core/components/dropdowns/priority.tsx b/web/core/components/dropdowns/priority.tsxindex b1f05978dd..ee11679156 100644--- a/web/core/components/dropdowns/priority.tsx+++ b/web/core/components/dropdowns/priority.tsx@@ -63,7 +63,7 @@ const BorderButton = (props: ButtonProps) => {const priorityDetails = ISSUE_PRIORITIES.find((p) => p.key === priority);const priorityClasses = {- urgent: "bg-red-500/20 text-red-950 border-red-500",+ urgent: "bg-red-600/10 text-red-600 border-red-600 px-1",high: "bg-orange-500/20 text-orange-950 border-orange-500",medium: "bg-yellow-500/20 text-yellow-950 border-yellow-500",low: "bg-custom-primary-100/20 text-custom-primary-950 border-custom-primary-100",@@ -88,7 +88,7 @@ const BorderButton = (props: ButtonProps) => {// compact the icons if text is hidden"px-0.5": hideText,// highlight the whole button if text is hidden and priority is urgent- "bg-red-600 border-red-600": priority === "urgent" && hideText && highlightUrgent,+ "bg-red-600/10 border-red-600": priority === "urgent" && hideText && highlightUrgent,},className)}@@ -98,7 +98,8 @@ const BorderButton = (props: ButtonProps) => {<divclassName={cn({// highlight just the icon if text is visible and priority is urgent- "bg-red-600 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,+ "bg-red-600/20 p-0.5 rounded border border-red-600":+ priority === "urgent" && !hideText && highlightUrgent,})}><PriorityIcon@@ -112,7 +113,6 @@ const BorderButton = (props: ButtonProps) => {"translate-x-0.5": hideText && priority === "medium","translate-x-1": hideText && priority === "low",// highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,})}/></div>@@ -145,7 +145,7 @@ const BackgroundButton = (props: ButtonProps) => {const priorityDetails = ISSUE_PRIORITIES.find((p) => p.key === priority);const priorityClasses = {- urgent: "bg-red-500/20 text-red-950",+ urgent: "bg-red-600/20 text-red-600",high: "bg-orange-500/20 text-orange-950",medium: "bg-yellow-500/20 text-yellow-950",low: "bg-blue-500/20 text-blue-950",@@ -170,7 +170,7 @@ const BackgroundButton = (props: ButtonProps) => {// compact the icons if text is hidden"px-0.5": hideText,// highlight the whole button if text is hidden and priority is urgent- "bg-red-600 border-red-600": priority === "urgent" && hideText && highlightUrgent,+ "bg-red-600/10 border-red-600": priority === "urgent" && hideText && highlightUrgent,},className)}@@ -180,7 +180,8 @@ const BackgroundButton = (props: ButtonProps) => {<divclassName={cn({// highlight just the icon if text is visible and priority is urgent- "bg-red-600 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,+ "bg-red-600/20 p-0.5 rounded border border-red-600":+ priority === "urgent" && !hideText && highlightUrgent,})}><PriorityIcon@@ -194,7 +195,6 @@ const BackgroundButton = (props: ButtonProps) => {"translate-x-0.5": hideText && priority === "medium","translate-x-1": hideText && priority === "low",// highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,})}/></div>@@ -253,7 +253,7 @@ const TransparentButton = (props: ButtonProps) => {// compact the icons if text is hidden"px-0.5": hideText,// highlight the whole button if text is hidden and priority is urgent- "bg-red-600 border-red-600": priority === "urgent" && hideText && highlightUrgent,+ "bg-red-600/10 border-red-600": priority === "urgent" && hideText && highlightUrgent,"bg-custom-background-80": isActive,},className@@ -264,7 +264,8 @@ const TransparentButton = (props: ButtonProps) => {<divclassName={cn({// highlight just the icon if text is visible and priority is urgent- "bg-red-600 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,+ "bg-red-600/20 p-0.5 rounded border border-red-600":+ priority === "urgent" && !hideText && highlightUrgent,})}><PriorityIcon@@ -278,7 +279,6 @@ const TransparentButton = (props: ButtonProps) => {"translate-x-0.5": hideText && priority === "medium","translate-x-1": hideText && priority === "low",// highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,})}/></div>