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

Added QA to track filter #27

Merged
merged 4 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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- attach_workspace:
at: .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish --tag=qa-accessibility
- run: npm publish --tag=test-release

workflows:
version: 2
Expand All @@ -48,4 +48,4 @@ workflows:
tags:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- test
- test
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:scss": "./node_modules/.bin/stylelint **/*.scss --syntax scss",
"test": "npm run lint && npm run jest"
},
"version": "1.0.12",
"version": "1000.0.2",
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.4.1",
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;
color: $tc-white;

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

&:visited {
color: $tc-white;
}
}