Skip to content

Commit 5c0b2f7

Browse files
Vu Van DucVu Van Duc
Vu Van Duc
authored and
Vu Van Duc
committed
feat(ui): update UI
1 parent c16fad1 commit 5c0b2f7

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

src/ui/components/PageHeader/PageHeader.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
font-size: 1rem;
6363
font-weight: 700;
6464

65+
& > * {
66+
color: var(--ion-color-neutral-700);
67+
}
68+
6569
&.md {
6670
font-size: 0.8rem;
6771
}

src/ui/components/VerifyPassword/VerifyPassword.scss

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,32 @@
3838
--min-height: auto;
3939
}
4040

41-
ion-item.custom-input .input-line {
42-
border: none;
43-
text-align: center;
44-
font-size: 2rem;
45-
}
41+
ion-item.custom-input {
42+
.input-line {
43+
border-width: 0.125rem;
44+
overflow: hidden;
45+
background: var(--ion-color-neutral-100);
46+
47+
&:focus-within {
48+
border-color: var(--ion-color-primary-700);
49+
}
50+
}
4651

47-
ion-input {
48-
margin-left: 2rem;
52+
ion-input {
53+
border-radius: 0.5rem;
54+
--padding-top: 0.75rem;
55+
--padding-bottom: 0.75rem;
56+
font-weight: 400;
57+
font-size: 1rem;
4958

50-
&[type="password"] {
51-
letter-spacing: 0.25em;
52-
}
53-
}
59+
.input-wrapper {
60+
--background: var(--ion-color-neutral-100);
61+
}
5462

55-
.close-button-label {
56-
color: var(--ion-color-neutral-800);
63+
&[type="password"] {
64+
letter-spacing: 0.25em;
65+
}
66+
}
5767
}
5868

5969
.error-message {
@@ -91,6 +101,9 @@
91101
text-transform: none !important;
92102
border-radius: 1rem !important;
93103
border: 1px solid var(--ion-color-neutral-400) !important;
94-
height: auto !important;
104+
105+
&.sc-ion-alert-md {
106+
height: auto !important;
107+
}
95108
}
96109
}

src/ui/components/VerifyPassword/VerifyPassword.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ const VerifyPassword = ({
127127
<form className="password-input-container">
128128
<CustomInput
129129
dataTestId="verify-password-value"
130-
hiddenInput={true}
131-
autofocus={true}
130+
hiddenInput
131+
autofocus
132132
onChangeInput={setVerifyPasswordValue}
133133
value={verifyPasswordValue}
134+
error={showError}
134135
/>
135136
{showError ? (
136137
<ErrorMessage

0 commit comments

Comments
 (0)