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

Commit e9e3421

Browse files
authored
Merge pull request #32 from topcoder-platform/develop
Develop
2 parents dc6ce00 + 9451a43 commit e9e3421

File tree

16 files changed

+99
-44
lines changed

16 files changed

+99
-44
lines changed

Diff for: .circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ workflows:
4848
tags:
4949
only: /v[0-9]+(\.[0-9]+)*/
5050
requires:
51-
- test
51+
- test

Diff for: __tests__/__snapshots__/index.js.snap

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Object {
1515
"GhostButton": [Function],
1616
"Modal": [Function],
1717
"PrimaryButton": [Function],
18+
"QATrackEventTag": [Function],
19+
"QATrackTag": [Function],
1820
"SecondaryButton": [Function],
1921
"Tag": [Function],
2022
}

Diff for: package-lock.json

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint:scss": "./node_modules/.bin/stylelint **/*.scss --syntax scss",
3333
"test": "npm run lint && npm run jest"
3434
},
35-
"version": "0.5.10",
35+
"version": "2.0.0",
3636
"dependencies": {
3737
"prop-types": "^15.6.2",
3838
"react": "^16.4.1",

Diff for: src/shared/components/buttons/themes/danger.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import "default";
66

77
@mixin button {
8-
background: $tc-red-70;
8+
background: $tc-red-110;
99
border-color: transparent;
1010
color: $tc-white;
1111
}
@@ -38,7 +38,7 @@
3838
}
3939

4040
&:active {
41-
background-color: $tc-red;
41+
background-color: $tc-red-110;
4242
background-image: none;
4343
box-shadow: inset 0 1px 3px 0 rgba(71, 71, 79, 0.38);
4444
border-color: transparent;

Diff for: src/shared/components/buttons/themes/primary.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import "default";
66

77
@mixin button {
8-
background: $tc-dark-blue;
8+
background: $tc-dark-blue-110;
99
border-color: transparent;
1010
color: $tc-white;
1111
}

Diff for: src/shared/components/tags/event/data-science.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
@import "../default";
66

77
.button {
8-
color: $tc-orange;
8+
color: $tc-orange-110;
99
background-color: $tc-orange-10;
1010

1111
&:active,
1212
&:focus,
1313
&:hover {
1414
color: $tc-orange;
15-
background-color: $tc-orange-10;
15+
background-color: $tc-orange-30;
1616
}
1717

1818
&:visited {

Diff for: src/shared/components/tags/event/design.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
@import "../default";
66

77
.button {
8-
color: $tc-light-blue;
8+
color: $tc-dark-blue-110;
99
background-color: $tc-light-blue-10;
1010

1111
&:active,
1212
&:focus,
1313
&:hover {
1414
color: $tc-light-blue;
15-
background-color: $tc-light-blue-10;
15+
background-color: $tc-light-blue-30;
1616
}
1717

1818
&:visited {

Diff for: src/shared/components/tags/event/development.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
@import "../default";
66

77
.button {
8-
color: $tc-green;
8+
color: $tc-green-110;
99
background-color: $tc-green-10;
1010

1111
&:active,
1212
&:focus,
1313
&:hover {
1414
color: $tc-green;
15-
background-color: $tc-green-10;
15+
background-color: $tc-green-30;
1616
}
1717

1818
&:visited {

Diff for: src/shared/components/tags/event/qa.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Event tag, colored with colors of qa track (purple).
3+
*/
4+
5+
@import "../default";
6+
7+
.button {
8+
color: $tc-purple-120;
9+
background-color: $tc-purple-20;
10+
11+
&:active,
12+
&:focus,
13+
&:hover {
14+
color: $tc-purple;
15+
background-color: $tc-purple-30;
16+
}
17+
18+
&:visited {
19+
color: $tc-purple;
20+
}
21+
}

Diff for: src/shared/components/tags/index.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import defaultTag from './default.scss';
66
import dataScienceTrackTag from './primary/data-science.scss';
77
import designTrackTag from './primary/design.scss';
88
import developmentTrackTag from './primary/development.scss';
9+
import qaTrackTag from './primary/qa.scss';
910

1011
import dataScienceTrackEventTag from './event/data-science.scss';
1112
import designTrackEventTag from './event/design.scss';
1213
import developmentTrackEventTag from './event/development.scss';
14+
import qaTrackEventTag from './event/qa.scss';
1315

1416
export const Tag = themr('Tag', defaultTag)(GenericButton);
1517

@@ -21,3 +23,6 @@ export const DesignTrackEventTag = themr('DesignTrackEventTag', designTrackEvent
2123

2224
export const DevelopmentTrackTag = themr('DevelopmentTrackTag', developmentTrackTag)(GenericButton);
2325
export const DevelopmentTrackEventTag = themr('DevelopmentTrackEventTag', developmentTrackEventTag)(GenericButton);
26+
27+
export const QATrackTag = themr('QATrackTag', qaTrackTag)(GenericButton);
28+
export const QATrackEventTag = themr('QATrackEventTag', qaTrackEventTag)(GenericButton);

Diff for: src/shared/components/tags/primary/data-science.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import "../default";
66

77
.button {
8-
background-color: $tc-orange;
8+
background-color: $tc-orange-110;
99
color: $tc-white;
1010

1111
&:active,

Diff for: src/shared/components/tags/primary/design.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import "../default";
66

77
.button {
8-
background-color: $tc-light-blue;
8+
background-color: $tc-light-blue-110;
99
color: $tc-white;
1010

1111
&:active,

Diff for: src/shared/components/tags/primary/development.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@import "../default";
66

77
.button {
8-
background-color: $tc-green;
8+
background-color: $tc-green-110;
99
color: $tc-white;
1010

1111
&:active,

Diff for: src/shared/components/tags/primary/qa.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Primary tag, colored with colors of qa track (purple).
3+
*/
4+
5+
@import "../default";
6+
7+
.button {
8+
background-color: $tc-purple-120;
9+
color: $tc-white;
10+
11+
&:active,
12+
&:focus,
13+
&:hover {
14+
color: $tc-white;
15+
background-color: $tc-purple;
16+
}
17+
18+
&:visited {
19+
color: $tc-white;
20+
}
21+
}

Diff for: src/styles/_mixins/variables.scss

+32-27
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $tc-black: #151516;
2424
$tc-gray-90: #2a2a2b;
2525
$tc-gray-80: #404041;
2626
$tc-gray-70: #555;
27+
$tc-gray-75: #006dea;
2728
$tc-gray-60: #6b6b6b;
2829
$tc-gray-50: #808080;
2930
$tc-gray-40: #959596;
@@ -36,31 +37,32 @@ $tc-gray-neutral-light: #fafafb;
3637
$tc-white: #fff;
3738

3839
/* Accents & Shades. */
39-
$tc-dark-blue-110: #006dea;
40+
$tc-dark-blue-110: #006ad7;
41+
$tc-dark-blue-105: #006feb;
4042
$tc-dark-blue-100: #0681ff;
4143
$tc-dark-blue-70: #55a5ff;
4244
$tc-dark-blue-30: #cee6ff;
4345
$tc-dark-blue-10: #f4f9ff;
4446

4547
/* Light Blue - design color code. */
46-
$tc-light-blue-110: #169ed9;
47-
$tc-light-blue-100: #26ade9;
48-
$tc-light-blue-70: #67c5ef;
49-
$tc-light-blue-30: #bde6f8;
48+
$tc-light-blue-110: #0076a5;
49+
$tc-light-blue-100: #15acec;
50+
$tc-light-blue-70: #63c4f1;
51+
$tc-light-blue-30: #bce6f9;
5052
$tc-light-blue-10: #e9f6fc;
5153

5254
/* Warm Orange - data science color code. */
53-
$tc-orange-110: #f26500;
54-
$tc-orange-100: #fb7d22;
55-
$tc-orange-70: #fda464;
56-
$tc-orange-30: #fee3d0;
55+
$tc-orange-110: #ba4c00;
56+
$tc-orange-100: #fd7d00;
57+
$tc-orange-70: #ffa45d;
58+
$tc-orange-30: #ffe3cf;
5759
$tc-orange-10: #fff0eb;
5860

5961
/* Red - used for warnings/ */
6062
$tc-red-110: #ea1900;
61-
$tc-red-100: #f22f24;
62-
$tc-red-70: #ff5b52;
63-
$tc-red-30: #ffd4d1;
63+
$tc-red-100: #f52c14;
64+
$tc-red-70: #ff5a4c;
65+
$tc-red-30: #ffd4d0;
6466
$tc-red-10: #fff4f4;
6567

6668
/* Yellow. */
@@ -71,25 +73,28 @@ $tc-yellow-30: #fff8ca;
7173
$tc-yellow-10: #fffde5;
7274

7375
/* Greens - development color code. */
74-
$tc-green-110: #55b000;
75-
$tc-green-100: #60c700;
76-
$tc-green-70: #96d957;
77-
$tc-green-30: #cfefb2;
78-
$tc-green-10: #effae5;
76+
$tc-green-120: #258205;
77+
$tc-green-110: #328732;
78+
$tc-green-100: #5cc900;
79+
$tc-green-70: #94db4e;
80+
$tc-green-30: #cef0af;
81+
$tc-green-10: #effae4;
7982

8083
/* Purples. */
81-
$tc-purple-110: #9050a3;
82-
$tc-purple-100: #9050a3;
83-
$tc-purple-70: #b47dd6;
84-
$tc-purple-30: #e2c7f2;
84+
$tc-purple-120: #8231a9;
85+
$tc-purple-110: #753488;
86+
$tc-purple-100: #914da5;
87+
$tc-purple-70: #b57ad8;
88+
$tc-purple-30: #e2c6f3;
89+
$tc-purple-20: #e6cff1;
8590
$tc-purple-10: #f8f2fb;
8691

8792
/* TC Metal colors - Badges.
8893
*
8994
* For metals the level 100 is the base metal color; 110 is for text inside
9095
* the metal-colored areas; and 130 is for small text inside metal-colored
9196
* areas, for better visibility. */
92-
$tc-gold-130: #865e07;
97+
$tc-gold-130: #9a6d00;
9398
$tc-gold-110: #c99014;
9499
$tc-gold-100: #ffd84d;
95100

@@ -99,13 +104,13 @@ $tc-silver-100: #d1d0cf;
99104

100105
$tc-bronze-130: #733d17;
101106
$tc-bronze-110: #854e29;
102-
$tc-bronze-100: #d98d64;
107+
$tc-bronze-100: #d98f64;
103108

104109
/* Pastel colors, used for levels. */
105-
$tc-pastel-green: #25c089;
106-
$tc-pastel-blue: #666eff;
107-
$tc-pastel-yellow: #fcb816;
108-
$tc-pastel-crimson: #e6175c;
110+
$tc-pastel-green: #12c188;
111+
$tc-pastel-blue: #5656f4;
112+
$tc-pastel-yellow: #feb900;
113+
$tc-pastel-crimson: #e90c5a;
109114

110115
/* Color aliases. */
111116

0 commit comments

Comments
 (0)