Skip to content

Commit b2056a3

Browse files
committed
fix: delete modal confirmation
1 parent 64e6a5a commit b2056a3

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

src/shared/components/Settings/Account/LinkedAccount/ExistingLinks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class ExistingLinks extends ConsentComponent {
8989
<div styleName="modal.deletion-confirmation-container">
9090
<div styleName="modal.deletion-confirmation">
9191
<div styleName="modal.deletion-confirmation-title">
92-
Heads Up!
92+
DELETE CONFIRMATION
9393
</div>
9494
<div styleName="modal.deletion-confirmation-message">
9595
Are you sure you want to delete the external link

src/shared/components/Settings/ConfirmationModal/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PT from 'prop-types';
33
import {
44
Modal, PrimaryButton, Button, GhostButton,
55
} from 'topcoder-react-ui-kit';
6-
import IconClose from 'assets/images/icon-close.svg';
6+
import IconClose from 'assets/images/icon-close-green.svg';
77

88
import styles from './styles.scss';
99

@@ -14,22 +14,22 @@ export default function ConfirmationModal(props) {
1414
<div styleName="modal-dialog">
1515
<div styleName="modal-content">
1616
<div styleName="modal-header">
17-
HEADS UP!
17+
DELETE CONFIRMATION
1818
<GhostButton theme={{ button: styles.close }} onClick={onCancel}>
1919
<IconClose />
2020
</GhostButton>
2121
</div>
2222
<div styleName="modal-body">
2323
<span styleName="title">
24-
Are you sure you want to delete `{name}`? This action can&apos;t be undone.
24+
Are you sure you want to delete<span>{' '}{name}</span>? This action cannot be undone.
2525
</span>
2626
</div>
2727
<div styleName="modal-footer">
2828
<div>
2929
<PrimaryButton theme={{ button: styles['button-save'] }} onClick={onConfirm}>Yes, Delete</PrimaryButton>
3030
</div>
3131
<div>
32-
<Button theme={{ button: styles['button-save-ghost'] }} onClick={onCancel}>Cancel</Button>
32+
<Button theme={{ button: styles['button-save-ghost'] }} onClick={onCancel}>No, Cancel</Button>
3333
</div>
3434
</div>
3535
</div>

src/shared/components/Settings/ConfirmationModal/styles.scss

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
border-radius: 8px;
4545
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
4646
margin: 32px;
47-
width: calc(100% - 64px);
47+
width: 100%;
4848
}
4949

5050
.modal-header {
51-
@include roboto-bold;
51+
@include barlow-bold;
5252

53-
font-size: 34px;
54-
line-height: 32px;
55-
font-weight: 500;
53+
font-size: 22px;
54+
line-height: 26px;
55+
font-weight: 600;
5656
text-transform: uppercase;
5757
display: flex;
5858
align-items: center;
@@ -69,14 +69,19 @@
6969

7070
.title {
7171
font-size: 16px;
72-
line-height: 20px;
73-
letter-spacing: 0.5px;
74-
font-weight: 500;
75-
padding-bottom: 10px;
76-
text-transform: uppercase;
77-
display: flex;
72+
line-height: 24px;
73+
font-weight: 400;
74+
padding: 24px 0;
7875
align-items: center;
7976
border-radius: 8px 8px 0 0;
77+
border-top: 2px solid $color-black-10;
78+
border-bottom: 2px solid $color-black-10;
79+
width: 100%;
80+
81+
span {
82+
font-weight: 800;
83+
margin-left: 5px;
84+
}
8085

8186
@include xs-to-sm {
8287
font-size: 16px;
@@ -88,14 +93,15 @@
8893
display: flex;
8994
flex-direction: row-reverse;
9095
align-items: flex-end;
91-
padding: $pad-xxxxl 0;
92-
margin: $margin-xxxl $margin-xxxxl 0;
93-
border-top: 2px solid $color-black-10;
96+
padding: 24px 0;
9497
border-radius: 0 0 8px 8px;
98+
margin-right: 24px;
9599

96100
@include xs-to-md {
97101
padding: $pad-lg;
98102
margin: 0 $margin-lg 0;
103+
width: 100%;
104+
padding-right: 24px !important;
99105
}
100106
}
101107

@@ -151,15 +157,15 @@
151157
font-size: 16px;
152158
line-height: 24px;
153159
border-radius: 50px !important;
154-
color: #2a2a2a !important;
160+
color: #137d60 !important;
155161
text-transform: uppercase;
156162
background-color: #fff !important;
157-
border: 1px solid #2a2a2a !important;
163+
border: 2px solid #137d60 !important;
158164

159165
&:hover {
160166
background-color: #fff !important;
161167
background-image: none !important;
162-
border-color: #2a2a2a !important;
168+
border-color: #137d60 !important;
163169
}
164170

165171
@include xs-to-md {

0 commit comments

Comments
 (0)