Skip to content

Commit

Permalink
💄 Update requiredColor to #999
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Jan 17, 2019
1 parent fdfeeb3 commit 0d6cc1d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/utils/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import PropTypes from 'prop-types';
import lighten from 'polished/lib/color/lighten';
import darken from 'polished/lib/color/darken';
import desaturate from 'polished/lib/color/desaturate';
import { css } from 'styled-components';
import { cloneFunc, compose, propTypes, style } from 'styled-system';

Expand Down Expand Up @@ -194,7 +195,7 @@ export const formPseudo = (props: Object): string => {
&:required:not(:valid) {
border-color: ${requiredColor};
${placeholder(`color: ${requiredColor};`)};
${placeholder(`color: ${lighten(0.1, desaturate(0.2, requiredColor))};`)};
}
`;
};
2 changes: 1 addition & 1 deletion src/utils/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const baseInput = {
md: 8,
lg: 10,
},
requiredColor: '#000',
requiredColor: '#999',
validation: {
invalid: '#f00',
valid: '#3ac200',
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/Input.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ exports[`Input should render properly 1`] = `
}
.c0:required:not(:valid) {
border-color: #000;
border-color: #999;
}
.c0:required:not(:valid)::-webkit-input-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid)::-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-ms-input-placeholder {
color: #000;
color: #b3b3b3;
}
<Input
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/Select.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ exports[`Select should render properly 1`] = `
}
.c0:required:not(:valid) {
border-color: #000;
border-color: #999;
}
.c0:required:not(:valid)::-webkit-input-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid)::-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-ms-input-placeholder {
color: #000;
color: #b3b3b3;
}
<Select
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/Textarea.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ exports[`Textarea should render properly 1`] = `
}
.c0:required:not(:valid) {
border-color: #000;
border-color: #999;
}
.c0:required:not(:valid)::-webkit-input-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid)::-moz-placeholder {
color: #000;
color: #b3b3b3;
}
.c0:required:not(:valid):-ms-input-placeholder {
color: #000;
color: #b3b3b3;
}
<Textarea
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3791,7 +3791,7 @@ Object {
"md": 8,
"sm": 6,
},
"requiredColor": "#000",
"requiredColor": "#999",
"validation": Object {
"invalid": "#f00",
"valid": "#3ac200",
Expand Down Expand Up @@ -3851,7 +3851,7 @@ Object {
"md": 8,
"sm": 6,
},
"requiredColor": "#000",
"requiredColor": "#999",
"validation": Object {
"invalid": "#f00",
"valid": "#3ac200",
Expand Down Expand Up @@ -3946,7 +3946,7 @@ Object {
"md": 8,
"sm": 6,
},
"requiredColor": "#000",
"requiredColor": "#999",
"validation": Object {
"invalid": "#f00",
"valid": "#3ac200",
Expand Down

0 comments on commit 0d6cc1d

Please sign in to comment.