Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Label): Apply correct colors given active state
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 18, 2019
1 parent b1d139f commit 1aee5fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const InputContainer = createComponent({
name: 'InputContainer',
style: css`
position: relative;
color: ${p => p.theme.colors.greyDarker};
& + ${StyledFormError} {
margin-left: 4px;
Expand Down
14 changes: 4 additions & 10 deletions src/Form/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,17 @@ const Label = createComponent({
css`
position: absolute;
margin: 0;
font-size: 16px;
line-height: 14px;
left: 9px;
top: 50%;
transform: translateY(-50%);
font-size: ${isFloating ? 12 : 16}px;
top: ${isFloating ? '6px' : '50%'};
transform: ${isFloating ? 'none' : 'translateY(-50%)'};
color: ${theme.colors.greyDarker};
user-select: none;
&:hover {
cursor: text;
}
${isFloating &&
css`
font-size: 12px;
top: 6px;
transform: none;
`}
`};
${isFocused &&
Expand Down

0 comments on commit 1aee5fe

Please sign in to comment.