Skip to content

Commit 16f287f

Browse files
Added backdrop to modal
1 parent a482a92 commit 16f287f

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

microfrontends/SignDocuments/src/Component/SignYourselfPdf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,9 +1048,10 @@ function SignYourSelf() {
10481048
>
10491049
{/* this modal is used show this document is already sign */}
10501050

1051-
<Modal
1051+
<Modal
10521052
show={showAlreadySignDoc.status}
10531053
onShow={() => modalAlign()}
1054+
backdropClassName="signature-backdrop"
10541055
>
10551056
<ModalHeader style={{ background: themeColor() }}>
10561057
<span style={{ color: "white" }}> Sign Documents</span>

microfrontends/SignDocuments/src/Component/recipientSignPdf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,10 @@ function EmbedPdfImage() {
10281028
}}
10291029
>
10301030
{/* this modal is used show this document is already sign */}
1031-
<Modal
1031+
<Modal
10321032
show={isAlreadySign.status}
10331033
onShow={() => modalAlign()}
1034+
backdropClassName="signature-backdrop"
10341035
>
10351036
<ModalHeader style={{ background: themeColor() }}>
10361037
<span style={{ color: "white" }}> Sign Documents</span>
@@ -1143,7 +1144,7 @@ function EmbedPdfImage() {
11431144
)}
11441145
</div>
11451146
)}
1146-
1147+
11471148
</DndProvider>
11481149
);
11491150
}

microfrontends/SignDocuments/src/css/signature.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ option {
626626
padding: 16px;
627627
}
628628

629-
/* The sticky class is added to the navbar
629+
/* The sticky class is added to the navbar
630630
with JS when it reaches its scroll position */
631631
.stickyHead {
632632
position: fixed;
@@ -644,9 +644,9 @@ option {
644644
right: 0rem;
645645
}
646646

647-
/* Add some top padding to the page content
648-
to prevent sudden quick movement (as the
649-
navigation bar gets a new position at the top of the
647+
/* Add some top padding to the page content
648+
to prevent sudden quick movement (as the
649+
navigation bar gets a new position at the top of the
650650
page (position:fixed and top:0) */
651651
.stickyHead+.content {
652652
padding-top: 60px;
@@ -776,4 +776,14 @@ option {
776776
.mobileHead {
777777
display: flex;
778778
}
779+
}
780+
781+
.signature-backdrop {
782+
position: fixed;
783+
top: 0; bottom: 0; left: 0; right: 0;
784+
background-color: #000;
785+
}
786+
787+
.signature-backdrop.fade.in {
788+
opacity: 0.5;
779789
}

0 commit comments

Comments
 (0)