Skip to content

Commit 5f0783c

Browse files
authored
Merge pull request #158 from a8cteam51/fix/gh153-validate-account-details
Fix/gh153 validate account details
2 parents 0d841ab + f7da321 commit 5f0783c

13 files changed

Lines changed: 677 additions & 58 deletions

File tree

assets/css/build/style-style.scss.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/src/admin/_settings.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,17 @@
7070
.wlf_read-only {
7171
pointer-events: none;
7272
background-color: #f9f9f9;
73+
}
74+
75+
.wlf_toggle_setting__invalid_api_keys input {
76+
border-color: #dc3232;
77+
}
78+
79+
#invalid_api_creds {
80+
text-align: center;
81+
p {
82+
color: #dc3232;
83+
font-weight: 600;
84+
margin: 0;
85+
}
7386
}

assets/css/src/admin/_wizard.scss

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
max-width: calc(100% - 60px);
88
margin-left: auto;
99
margin-right: auto;
10-
1110
input[type="checkbox"] {
1211
appearance: none;
1312
width: 40px;
@@ -18,7 +17,6 @@
1817
cursor: pointer;
1918
transition: background 0.3s;
2019
margin: inherit;
21-
2220
&::before {
2321
content: "";
2422
position: absolute;
@@ -30,18 +28,15 @@
3028
left: 2px;
3129
transition: transform 0.3s;
3230
}
33-
3431
&:checked {
3532
background: #2271b1;
36-
3733
&::before {
3834
transform: translateX(20px);
3935
top: 4px;
4036
left: 5px;
4137
}
4238
}
4339
}
44-
4540
input[type="text"],
4641
input[type="password"],
4742
select {
@@ -50,6 +45,9 @@
5045
font-size: 19px;
5146
max-width: unset;
5247
}
48+
input.invalid {
49+
border-color: #dc3232;
50+
}
5351
}
5452

5553
#wlf-wizard__footer {
@@ -66,7 +64,6 @@
6664
justify-content: center;
6765
padding: 0 25px;
6866
width: 100%;
69-
7067
@media (max-width: 499px) {
7168
display: none;
7269
}
@@ -78,90 +75,78 @@
7875
align-items: center;
7976
display: inline;
8077
text-align: center;
81-
position: relative;
82-
83-
.wlf-wizard__footer__progress__bar__inner {
84-
background-color: #2271b1;
85-
height: 5px;
86-
position: relative;
87-
z-index: 1;
88-
}
89-
90-
&::before {
91-
content: "";
92-
position: absolute;
93-
bottom: 0;
94-
left: 0;
95-
height: 5px;
96-
background-color: #f5f5f5;
97-
width: 100%;
98-
transition: width 0.3s ease-in-out;
99-
z-index: 0;
100-
}
78+
position: relative;
79+
.wlf-wizard__footer__progress__bar__inner {
80+
background-color: #2271b1;
81+
height: 5px;
82+
position: relative;
83+
z-index: 1;
84+
}
85+
&::before {
86+
content: "";
87+
position: absolute;
88+
bottom: 0;
89+
left: 0;
90+
height: 5px;
91+
background-color: #f5f5f5;
92+
width: 100%;
93+
transition: width 0.3s ease-in-out;
94+
z-index: 0;
95+
}
10196
}
10297

10398
.wlf-wizard__content {
10499
form {
105100
display: flex;
106101
flex-direction: column;
107102
}
108-
109103
&__field {
110104
display: flex;
111105
flex-direction: column;
112106
margin-bottom: 20px;
113107
justify-content: center;
114108
align-items: flex-start;
115-
116109
&.is_optional.disabled {
117110
display: none;
118111
}
119-
120112
label {
121113
font-size: 17px;
122114
line-height: 20px;
123115
margin-bottom: 6px;
124116
font-weight: 400;
125117
}
126118
}
127-
128119
&__inner-field {
129120
.inner-spaced-between__list {
130121
display: flex;
131122
align-items: center;
132123
justify-content: space-between;
133124
padding: 3px 25px;
134-
135125
&:hover {
136126
background-color: #f9f9f9;
137127
}
138128
}
139-
140129
.inner-spaced-between {
141130
display: flex;
142131
align-items: center;
143132
justify-content: space-between;
144133
width: 100%;
145134
}
146-
147135
&.checkbox {
148136
display: flex;
149137
flex-direction: column;
150138
align-items: center;
151139
justify-content: center;
152140
width: 100%;
153-
154141
input {
155142
margin: 10px;
156143
}
157144
}
158-
159145
&.checkboxes {
160146
width: 100%;
161147
}
162-
163148
p.description {
164149
width: 100%;
165150
}
166151
}
167-
}
152+
}

0 commit comments

Comments
 (0)