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

Commit e3ac1b3

Browse files
NkumarNkumar
Nkumar
authored and
Nkumar
committed
Patch for Issue 2868/2775 (MSFT-204/59) Fix PR 248/278
1 parent 17c2141 commit e3ac1b3

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'topcoder/tc-includes';
2+
@import "../tc-ui-variables.scss";
23

34
// Toggle password with password tips directive
45
toggle-password-with-tips {
@@ -20,7 +21,7 @@ toggle-password-with-tips {
2021

2122
.input-btn .input:focus ~ .tc-btn {
2223
color: #FFFFFF;
23-
background: #59A7FF;
24+
background: $tc-dark-blue-90;
2425
}
2526

2627
.input-btn .tc-btn,

app/styles/tc-ui.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
font-family: inherit;
9494
font-weight: inherit;
9595
}
96+
97+
.tc-btn.show-password-btn:focus {
98+
outline: 2px solid $tc-dark-blue-70;
99+
}
96100

97101
.tc-btn.loading:enabled, .tc-btn:focus:not(:disabled) {
98102
background: $tc-white;
@@ -356,4 +360,4 @@
356360
font-size: 15px;
357361
line-height: 20px;
358362
}
359-
}
363+
}

app/styles/tc/register.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'topcoder/tc-includes';
2+
@import '../tc-ui-variables.scss';
23

34
.register-container {
45
form {
@@ -8,6 +9,15 @@
89
align-items: center;
910
button {
1011
margin-top: 0;
12+
background-color: $tc-dark-blue-90;
13+
&:focus {
14+
outline: 3px solid $tc-dark-blue-70;
15+
}
16+
&.disabled {
17+
background-color: $tc-gray-60 !important;
18+
color: $tc-white-cream;
19+
opacity: 1;
20+
}
1121
}
1222

1323
@media (min-width: 768px) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
class="input input-btn {{ vm.hasPasswordError() ? 'error' : ''}}"
1919
required)
2020

21-
<button type="button" id="toggleInputTypeBtn" class="tc-btn tc-btn-sm" ng-click="vm.toggleInputType()">{{ vm.toggleShowLabel }}</button>
21+
<button type="button" id="toggleInputTypeBtn" tabIndex="0" class="tc-btn tc-btn-sm show-password-btn" ng-click="vm.toggleInputType()">{{ vm.toggleShowLabel }}</button>

app/views/tc/register.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
section.terms
115115
p By clicking "Join" you agree to Topcoder's #[a(href="http://www.topcoder.com/community/how-it-works/terms/", target="_blank") Terms] and #[a(href="http://www.topcoder.com/community/how-it-works/privacy-policy/", target="_blank") Privacy Policy]
116116

117-
button.tc-btn.tc-btn-large(type="submit", tc-busy-button, tc-busy-when="vm.registering", ng-disabled="vm.registerForm.$invalid", ng-show="vm.isValidCountry") Join
118-
button.tc-btn.tc-btn-large.disabled(type="submit", ng-show="!vm.isValidCountry", disabled="disabled") Join
117+
button.tc-btn.tc-btn-large(type="submit", tc-busy-button, tc-busy-when="vm.registering", ng-disabled="vm.registerForm.$invalid", ng-show="vm.isValidCountry", tabIndex="0") Join
118+
button.tc-btn.tc-btn-large.disabled(type="submit", ng-show="!vm.isValidCountry", disabled="disabled", tabIndex="0") Join
119119

120120
div(role="region" aria-label="Register With")
121121
section.login-options(ng-if="!vm.ssoUser")

0 commit comments

Comments
 (0)