Skip to content

Commit

Permalink
Merge pull request #54 from FlexConfirmMail/imrove-confirmation-dialog
Browse files Browse the repository at this point in the history
Improve confirmation dialog
  • Loading branch information
piroor authored Feb 7, 2025
2 parents f55b941 + 70b1615 commit 019d01a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
6 changes: 3 additions & 3 deletions src/web/confirm.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ fluent-dialog .newly-added-domain-content strong {
}

fluent-card {
margin-top: 20px;
padding-bottom: 20px;
margin-top: 10px;
margin-bottom: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
}
Expand All @@ -80,7 +81,6 @@ fluent-card {
flex-direction: column;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
}
Expand Down
61 changes: 34 additions & 27 deletions src/web/confirm.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<title>Confirmation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
Expand All @@ -9,35 +10,40 @@
<link href="dialog.css" rel="stylesheet">
<link href="confirm.css" rel="stylesheet">
</head>

<body class="dialog-body">
<div class="card-container">
<div class="cards">
<fluent-card>
<div class="heading-container">
<h3 data-l10n-text-content="confirmation_trustedCaption"></h3>
<fluent-button onclick="onCheckAllTrusted()"
data-l10n-text-content="confirmation_trustedCheckAllButtonLabel"></fluent-button>
</div>
<fluent-divider></fluent-divider>
<div id="trusted-domains">
</div>
</fluent-card>
<fluent-card>
<h3 data-l10n-text-content="confirmation_untrustedCaption"></h3>
<fluent-divider></fluent-divider>
<div id="untrusted-domains"></div>
</fluent-card>
<fluent-card>
<h3 data-l10n-text-content="confirmation_miscCaption"></h3>
<fluent-divider></fluent-divider>
<div id="attachment-and-others"></div>
</fluent-card>
<div class="dialog-content">
<div class="card-container">
<div class="cards">
<fluent-card>
<div class="heading-container">
<h3 data-l10n-text-content="confirmation_trustedCaption"></h3>
<fluent-button onclick="onCheckAllTrusted()"
data-l10n-text-content="confirmation_trustedCheckAllButtonLabel"></fluent-button>
</div>
<fluent-divider></fluent-divider>
<div id="trusted-domains">
</div>
</fluent-card>
<fluent-card>
<h3 data-l10n-text-content="confirmation_untrustedCaption"></h3>
<fluent-divider></fluent-divider>
<div id="untrusted-domains"></div>
</fluent-card>
<fluent-card>
<h3 data-l10n-text-content="confirmation_miscCaption"></h3>
<fluent-divider></fluent-divider>
<div id="attachment-and-others"></div>
</fluent-card>
</div>
</div>
</div>
<div class="dialog-footer">
<div class="button-container">
<fluent-button id="send-button" onclick="onSend()" disabled
data-l10n-text-content="confirmation_sendButtonLabel"></fluent-button>
data-l10n-text-content="confirmation_sendButtonLabel"></fluent-button>
<fluent-button id="cancel-button" onclick="onCancel()"
data-l10n-text-content="confirmation_cancelButtonLabel"></fluent-button>
data-l10n-text-content="confirmation_cancelButtonLabel"></fluent-button>
</div>
</div>
<fluent-dialog id="newly-added-domain-address-dialog" hidden trap-focus modal>
Expand All @@ -50,11 +56,12 @@ <h2 data-l10n-text-content="newlyAddedDomainReconfirmation_caption"></h2>
</fluent-card>
<div class="new-domain-button-container">
<fluent-button id="send-new-domain-button" onclick="onSendNewDomain()"
data-l10n-text-content="newlyAddedDomainReconfirmation_sendButtonLabel"></fluent-button>
data-l10n-text-content="newlyAddedDomainReconfirmation_sendButtonLabel"></fluent-button>
<fluent-button id="cancel-new-domain-button" onclick="onCancelNewDomain()"
data-l10n-text-content="newlyAddedDomainReconfirmation_cancelButtonLabel"></fluent-button>
data-l10n-text-content="newlyAddedDomainReconfirmation_cancelButtonLabel"></fluent-button>
</div>
</div>
</fluent-dialog>
</body>
</html>

</html>
1 change: 1 addition & 0 deletions src/web/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fluent-divider {
bottom: 0;
padding: 10px;
text-align: center;
background: white;
}

.dialog-body {
Expand Down

0 comments on commit 019d01a

Please sign in to comment.