Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit ca8fe39

Browse files
authored
Merge pull request #302 from r0hit-gupta/add-label-login
Issue 3232 | Add labels
2 parents b28c90a + 5ad9ba3 commit ca8fe39

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

app/styles/directives/toggle-password.directive.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ toggle-password {
3030
.input-btn .tc-btn:active {
3131
position: absolute;
3232
right: 1px;
33-
top: 1px;
33+
top: 21px;
3434
background: $tc-white;
3535
border: 0;
3636
border-left: 1px solid $tc-gray-30;
@@ -46,11 +46,4 @@ toggle-password {
4646
margin-top: 0px;
4747
}
4848

49-
label {
50-
display: flex !important;
51-
line-height: 20px !important;
52-
position: absolute;
53-
top: 10px;
54-
right: 0px;
55-
}
5649
}

app/styles/tc/login.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
@import "../tc-ui-variables";
33

44
.login-container {
5+
label {
6+
@include font-with-weight('Sofia Pro', 500);
7+
margin: 5px 0;
8+
display: block;
9+
margin-bottom: 5px;
10+
text-align: left;
11+
color: $tc-gray-80;
12+
font-size: 10px;
13+
line-height: 10px;
14+
height: initial;
15+
text-align: left;
16+
}
17+
518
form {
619
display: flex;
720
flex-flow: column wrap;

app/views/directives/toggle-password.directive.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.input-btn
2+
label(for="current-password-input") PASSWORD
23
input#current-password-input(
34
ng-model="vm.currentPassword",
45
ng-model-options="{allowInvalid: true}",

app/views/tc/login.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
p.form-error(ng-message="SOCIAL_LOGIN_ERROR" role="alert") User with that profile is not registered.
2222

2323
div.validation-bar(ng-class="{'error-bar': vm.loginErrors.USERNAME_NONEXISTANT}")
24-
input(ng-model="vm.username", placeholder="Username or Email", type="text", required, aria-invalid="false")
24+
label(for="username") USERNAME OR EMAIL
25+
input(ng-model="vm.username", id="username", placeholder="Username or Email", type="text", required, aria-invalid="false")
2526

2627
toggle-password
2728

0 commit comments

Comments
 (0)