Skip to content

Commit

Permalink
feat(switch): update to add ps-blue color option
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Esplin committed Nov 13, 2018
1 parent d464bda commit 00ad6c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/switch/package.json
Expand Up @@ -54,6 +54,7 @@
"jest": "^23.6.0",
"npm-run-all": "^4.1.2",
"raf": "^3.4.0",
"react": "^16.2.0"
"react": "^16.2.0",
"react-dom": "^16.6.3"
}
}
5 changes: 5 additions & 0 deletions packages/switch/src/css/index.js
Expand Up @@ -48,6 +48,11 @@ export default {
borderRadius: '12px',
padding: '1px'
},
[`.psds-switch__track--checked.psds-switch__track--color-${
vars.colors.blue
}`]: {
backgroundColor: core.colors.blue
},
[`.psds-switch__track--checked.psds-switch__track--color-${
vars.colors.green
}`]: {
Expand Down
5 changes: 3 additions & 2 deletions packages/switch/src/vars/index.js
Expand Up @@ -9,6 +9,7 @@ export const labelAligns = {
}

export const colors = {
orange: 'orange',
green: 'green'
blue: 'blue',
green: 'green',
orange: 'orange'
}

0 comments on commit 00ad6c0

Please sign in to comment.