Skip to content

Commit

Permalink
MOSIP-38327:The Clone and Cancel buttons in the Clone Policy popup ar…
Browse files Browse the repository at this point in the history
…e Centered (#1051)

Signed-off-by: Anil_Kumar_Majji <[email protected]>
  • Loading branch information
Anil-kumar-Majji authored Dec 20, 2024
1 parent 05cf250 commit 50fbe0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function ClonePolicyPopup ({policyDetails, closePopUp}) {
</DropdownWithSearchComponent>
</div>
<div className="border-[#E5EBFA] border-t mx-2"></div>
<div className="px-6 py-3 flex justify-end relative">
<div className="px-6 py-3 flex justify-between relative">
<button disabled={cloneSuccess} className={`w-36 h-10 m-1 ${cloneSuccess ? 'border-[#A5A5A5] bg-[#A5A5A5] text-white cursor-not-allowed' : 'border-[#1447B2] text-tory-blue bg-white'} border rounded-lg text-sm font-semibold relative z-60`}
onClick={cancelPopUp}
id="clone_policy_cancel">
Expand All @@ -179,8 +179,7 @@ function ClonePolicyPopup ({policyDetails, closePopUp}) {
id="clone_policy_close_button">
{t('commons.close')}
</button>
}

}
</div>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function CreatePolicy() {
<button id="create_policy_form_cancel_btn" onClick={() => clickOnCancel()} className={`${isLoginLanguageRTL ? "ml-2" : "mr-2"} w-11/12 md:w-40 h-10 border-[#1447B2] border rounded-md bg-white text-tory-blue text-sm font-semibold`}>{t('requestPolicy.cancel')}</button>
<button id="create_policy_form_submit_btn" disabled={!isFormValid()} onClick={() => clickOnSubmit()}
className={`${isLoginLanguageRTL ? "ml-2" : "mr-2"} w-11/12 md:w-40 h-10 border-[#1447B2] border rounded-md text-sm font-semibold ${isFormValid() ? 'bg-tory-blue text-white' : 'border-[#A5A5A5] bg-[#A5A5A5] text-white cursor-not-allowed'}`}
tabIndex="0" onKeyPress={(e) => onPressEnterKey(e, () => clickOnSubmit())}
tabIndex="0" onKeyDown={(e) => onPressEnterKey(e, () => clickOnSubmit())}
>
{t('createPolicy.saveAsDraft')}
</button>
Expand Down

0 comments on commit 50fbe0a

Please sign in to comment.