From 24d54ad385365100892dd25a846aae327c106f87 Mon Sep 17 00:00:00 2001 From: MadhuMosip Date: Thu, 11 Jul 2024 18:11:55 +0530 Subject: [PATCH] MOSIP-34342 MOSIP-34353 disabled register btn when error occurred and focusing the options when hover Signed-off-by: MadhuMosip --- .../src/keycloak-theme/login/Template.tsx | 2 +- .../keycloak-theme/login/pages/Register.tsx | 34 +++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/Template.tsx b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/Template.tsx index edb9e6a..17be9d8 100644 --- a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/Template.tsx +++ b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/Template.tsx @@ -85,7 +85,7 @@ export default function Template(props: TemplateProps) { <> {(currentLanguageTag !== languageTag) && ( <> - changeLocale(languageTag)} className="text-[#0D3077] px-[14px] py-[10px] flex content-center justify-between cursor-pointer"> + changeLocale(languageTag)} className="text-[#0D3077] px-[14px] py-[10px] flex content-center justify-between cursor-pointer hover:bg-[#F4F8FF]"> {labelBySupportedLanguageTag[languageTag]} diff --git a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/Register.tsx b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/Register.tsx index c730566..ba0cb3d 100644 --- a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/Register.tsx +++ b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/Register.tsx @@ -12,7 +12,7 @@ import eyeIconOff from '../assets/visibility_off.svg'; import info from '../assets/info.svg'; import error from '../assets/error.svg' import ToolTip from "./shared/Tooltip"; -import arrowRight from "../assets/arrow_right_rtl.svg" +import arrowRight from "../assets/arrow_right_rtl.svg"; declare global { interface Window { @@ -54,9 +54,10 @@ export default function Register(props: PageProps(null); const menuRef = useRef(null); @@ -206,6 +207,12 @@ export default function Register(props: PageProps {partnerTypesMenu && (
-
    -
  • selectedPartnerTypeValue('Device_Provider')} className="block py-2 cursor-pointer border-b" role="menuitem">Device Provider
  • -
  • selectedPartnerTypeValue('FTM_Provider')} className="block py-2 cursor-pointer border-b" role="menuitem">FTM Provider
  • -
  • selectedPartnerTypeValue('Authentication_Partner')} className="block py-2 cursor-pointer border-b" role="menuitem">Authentication Partner
  • -
  • selectedPartnerTypeValue('Credential_Partner_or_ISP')} className="block py-2 cursor-pointer border-b" role="menuitem">Credential Partner or ISP
  • -
  • selectedPartnerTypeValue('ABIS_Partner')} className="block py-2 cursor-pointer border-b" role="menuitem">ABIS Partner
  • -
  • selectedPartnerTypeValue('SDK_Partner')} className="block py-2 cursor-pointer" role="menuitem">SDK Partner
  • +
      +
    • selectedPartnerTypeValue('Device_Provider')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">Device Provider
    • +
      +
    • selectedPartnerTypeValue('FTM_Provider')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">FTM Provider
    • +
      +
    • selectedPartnerTypeValue('Authentication_Partner')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">Authentication Partner
    • +
      +
    • selectedPartnerTypeValue('Credential_Partner_or_ISP')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">Credential Partner or ISP
    • +
      +
    • selectedPartnerTypeValue('ABIS_Partner')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">ABIS Partner
    • +
      +
    • selectedPartnerTypeValue('SDK_Partner')} className="block py-3 px-5 cursor-pointer hover:bg-[#F4F8FF]" role="menuitem">SDK Partner
)}