Skip to content

Commit

Permalink
fix(v2): add missing hyphen in color generator (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored and endiliey committed Dec 9, 2019
1 parent d5919fd commit 172f071
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions website/src/components/ColorGenerator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,43 @@ import Color from 'color';
import styles from './styles.module.css';

const COLOR_SHADES = {
'-ifm-color-primary': {
'--ifm-color-primary': {
adjustment: 0,
adjustmentInput: 0,
displayOrder: 3,
codeOrder: 0,
},
'-ifm-color-primary-dark': {
'--ifm-color-primary-dark': {
adjustment: 0.1,
adjustmentInput: '10',
displayOrder: 4,
codeOrder: 1,
},
'-ifm-color-primary-darker': {
'--ifm-color-primary-darker': {
adjustment: 0.15,
adjustmentInput: '15',
displayOrder: 5,
codeOrder: 2,
},
'-ifm-color-primary-darkest': {
'--ifm-color-primary-darkest': {
adjustment: 0.3,
adjustmentInput: '30',
displayOrder: 6,
codeOrder: 3,
},
'-ifm-color-primary-light': {
'--ifm-color-primary-light': {
adjustment: -0.1,
adjustmentInput: '-10',
displayOrder: 2,
codeOrder: 4,
},
'-ifm-color-primary-lighter': {
'--ifm-color-primary-lighter': {
adjustment: -0.15,
adjustmentInput: '-15',
displayOrder: 1,
codeOrder: 5,
},
'-ifm-color-primary-lightest': {
'--ifm-color-primary-lightest': {
adjustment: -0.3,
adjustmentInput: '-30',
displayOrder: 0,
Expand Down Expand Up @@ -121,7 +121,7 @@ function ColorGenerator({children, minHeight, url}) {
</code>
</td>
<td>
{variableName === '-ifm-color-primary' ? (
{variableName === '--ifm-color-primary' ? (
0
) : (
<input
Expand Down

0 comments on commit 172f071

Please sign in to comment.