From 1b28287991c4bb14822b7c327d638476e30bc370 Mon Sep 17 00:00:00 2001 From: Nitin Singh Date: Mon, 22 Jul 2024 15:50:43 +0530 Subject: [PATCH 1/2] fix #8186 added primary color to selected section on consultation page --- src/Components/Facility/ConsultationDetails/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index 0b0d2c01a50..42c4cbdeb76 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -205,8 +205,10 @@ export const ConsultationDetails = (props: any) => { } const tabButtonClasses = (selected: boolean) => - `capitalize min-w-max-content cursor-pointer border-transparent text-secondary-700 hover:text-secondary-700 hover:border-secondary-300 font-bold whitespace-nowrap ${ - selected === true ? "border-primary-500 text-primary-600 border-b-2" : "" + `capitalize min-w-max-content cursor-pointer border-transparent hover:border-secondary-300 font-bold whitespace-nowrap ${ + selected === true + ? "border-primary-500 text-primary-600 border-b-2" + : "text-secondary-700 hover:text-secondary-700" }`; return ( From 53ea09e5fb308cb620e1d5c79d16f6a0e61c48c8 Mon Sep 17 00:00:00 2001 From: Nitin Singh Date: Tue, 23 Jul 2024 08:58:29 +0530 Subject: [PATCH 2/2] #8186 did require changes has per mention in feedback --- src/Components/Facility/ConsultationDetails/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index 42c4cbdeb76..62d3232729a 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -205,9 +205,9 @@ export const ConsultationDetails = (props: any) => { } const tabButtonClasses = (selected: boolean) => - `capitalize min-w-max-content cursor-pointer border-transparent hover:border-secondary-300 font-bold whitespace-nowrap ${ + `capitalize min-w-max-content cursor-pointer font-bold whitespace-nowrap ${ selected === true - ? "border-primary-500 text-primary-600 border-b-2" + ? "border-primary-500 hover:border-secondary-300 text-primary-600 border-b-2" : "text-secondary-700 hover:text-secondary-700" }`;