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

Issue4709 : Track and Subtrack enhancements : Details page #29

Merged
merged 2 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions __tests__/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Object {
"GhostButton": [Function],
"Modal": [Function],
"PrimaryButton": [Function],
"QATrackEventTag": [Function],
"QATrackTag": [Function],
"SecondaryButton": [Function],
"Tag": [Function],
}
Expand Down
21 changes: 21 additions & 0 deletions src/shared/components/tags/event/qa.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Event tag, colored with colors of qa track (purple).
*/

@import "../default";

.button {
color: $tc-purple;
background-color: $tc-purple-10;

&:active,
&:focus,
&:hover {
color: $tc-purple;
background-color: $tc-purple-10;
}

&:visited {
color: $tc-purple;
}
}
5 changes: 5 additions & 0 deletions src/shared/components/tags/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import defaultTag from './default.scss';
import dataScienceTrackTag from './primary/data-science.scss';
import designTrackTag from './primary/design.scss';
import developmentTrackTag from './primary/development.scss';
import qaTrackTag from './primary/qa.scss';

import dataScienceTrackEventTag from './event/data-science.scss';
import designTrackEventTag from './event/design.scss';
import developmentTrackEventTag from './event/development.scss';
import qaTrackEventTag from './event/qa.scss';

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

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

export const DevelopmentTrackTag = themr('DevelopmentTrackTag', developmentTrackTag)(GenericButton);
export const DevelopmentTrackEventTag = themr('DevelopmentTrackEventTag', developmentTrackEventTag)(GenericButton);

export const QATrackTag = themr('QATrackTag', qaTrackTag)(GenericButton);
export const QATrackEventTag = themr('QATrackEventTag', qaTrackEventTag)(GenericButton);
21 changes: 21 additions & 0 deletions src/shared/components/tags/primary/qa.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Primary tag, colored with colors of qa track (purple).
*/

@import "../default";

.button {
background-color: $tc-purple-120;
color: $tc-white;

&:active,
&:focus,
&:hover {
color: $tc-white;
background-color: $tc-purple-120;
}

&:visited {
color: $tc-white;
}
}
2 changes: 2 additions & 0 deletions src/styles/_mixins/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ $tc-green-30: #cef0af;
$tc-green-10: #effae4;

/* Purples. */
$tc-purple-120: #8231a9;
$tc-purple-110: #753488;
$tc-purple-100: #914da5;
$tc-purple-70: #b57ad8;
$tc-purple-30: #e2c6f3;
$tc-purple-20: #e6cff1;
$tc-purple-10: #f8f2fb;

/* TC Metal colors - Badges.
Expand Down