From f2375c902b79dcb1f349500862775ae57ea7d406 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sat, 4 Dec 2021 18:43:03 -0500 Subject: [PATCH] fix(ui): request badge styling in request list (#2302) --- src/components/Common/Badge/index.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/Common/Badge/index.tsx b/src/components/Common/Badge/index.tsx index bc450d7f4..c897d86f3 100644 --- a/src/components/Common/Badge/index.tsx +++ b/src/components/Common/Badge/index.tsx @@ -17,32 +17,32 @@ const Badge: React.FC = ({ ]; if (url) { - badgeStyle.push('transition cursor-pointer'); + badgeStyle.push('transition cursor-pointer !no-underline'); } else { badgeStyle.push('cursor-default'); } switch (badgeType) { case 'danger': - badgeStyle.push('bg-red-600 text-red-100'); + badgeStyle.push('bg-red-600 !text-red-100'); if (url) { badgeStyle.push('hover:bg-red-500'); } break; case 'warning': - badgeStyle.push('bg-yellow-500 text-yellow-100'); + badgeStyle.push('bg-yellow-500 !text-yellow-100'); if (url) { badgeStyle.push('hover:bg-yellow-400'); } break; case 'success': - badgeStyle.push('bg-green-500 text-green-100'); + badgeStyle.push('bg-green-500 !text-green-100'); if (url) { badgeStyle.push('hover:bg-green-400'); } break; default: - badgeStyle.push('bg-indigo-500 text-indigo-100'); + badgeStyle.push('bg-indigo-500 !text-indigo-100'); if (url) { badgeStyle.push('hover:bg-indigo-400'); } @@ -54,8 +54,13 @@ const Badge: React.FC = ({ if (url) { return ( - - {children} + + {children} ); } else {