diff --git a/packages/ui/src/icons/priority-icon.tsx b/packages/ui/src/icons/priority-icon.tsx index ffa74a3747c..b2fb2d53425 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 = (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 = (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.tsx index b1f05978dde..ee11679156c 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) => {
{ "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, })} />
@@ -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) => {
{ "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, })} />
@@ -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) => {
{ "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, })} />