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

Commit ea261e3

Browse files
committed
Fix for issue #1003 Color of the Complete Appeals button
The color of the complete appeals color has been changed. A new class btn-danger has been added which changes the styling color of the button to #e66 as requested. Also hover and active states are supported To test just modify file challenge-tile.jade so the Complete Appeals buttons appears.
1 parent 7b7bd0a commit ea261e3

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

app/directives/challenge-tile/challenge-tile.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
.phase-action(ng-show="challenge.userAction", ng-switch="challenge.userAction")
2323
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Submit", ng-href="{{challenge|challengeLinks:'submit'}}") Submit
2424
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'viewScorecards'}}") View Scorecards
25-
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'completeAppeals'}}") Complete Appeals
25+
a.tc-btn.tc-btn-s.tc-btn-wide.btn-danger.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'completeAppeals'}}") Complete Appeals
2626

2727
.submitted(ng-switch-when="Submitted") Submitted
2828

@@ -100,7 +100,7 @@
100100
.phase-action(ng-switch="challenge.userAction")
101101
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Submit", ng-href="{{challenge|challengeLinks:'submit'}}") Submit
102102
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'viewScorecards'}}") View Scorecards
103-
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'completeAppeals'}}") Complete Appeals
103+
a.tc-btn.tc-btn-s.tc-btn-wide.btn-danger.submit(ng-switch-when="Appeal", ng-href="{{challenge|challengeLinks:'completeAppeals'}}") Complete Appeals
104104

105105
.submitted(ng-switch-when="Submitted") Submitted
106106

assets/css/directives/challenge-tile.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,22 @@ challenge-tile .challenge.tile-view {
248248
.submit {
249249
margin: 12px;
250250
display: block;
251+
252+
&.btn-danger {
253+
color: #e66e66;
254+
background-color: $white;
255+
border-color: #e66e66;
256+
257+
&:hover {
258+
background-color: #e66e66;
259+
color: $white;
260+
}
261+
262+
&:active {
263+
background-color: #e0493e;
264+
box-shadow: inset 0px 1px 1px 0px rgba(0,0,0,0.30);
265+
}
266+
}
251267
}
252268

253269
.submitted {
@@ -508,6 +524,22 @@ challenge-tile .challenge.list-view {
508524
.submit {
509525
display: block;
510526
margin: 6px 0;
527+
528+
&.btn-danger {
529+
color: #e66e66;
530+
background-color: $white;
531+
border-color: #e66e66;
532+
533+
&:hover {
534+
background-color: #e66e66;
535+
color: $white;
536+
}
537+
538+
&:active {
539+
background-color: #e0493e;
540+
box-shadow: inset 0px 1px 1px 0px rgba(0,0,0,0.30);
541+
}
542+
}
511543
}
512544

513545
.submitted {

0 commit comments

Comments
 (0)