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

Commit

Permalink
feat: add active styling to buttons (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilmx authored and markusoelhafen committed Jun 10, 2018
1 parent d818c61 commit 46546b8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,23 @@ const StyledButton = styled.button`
background: transparent;
border: 1px solid ${Color.Grey50};
color: ${Color.Grey50};
&:active {
border-color: ${Color.Black};
color: ${Color.Black};
}
`;
case ButtonOrder.Primary:
default:
return css`
background: ${Color.Blue};
border: 1px solid ${Color.Blue};
background: ${Color.Blue20};
border: 1px solid ${Color.Blue20};
color: ${Color.White};
&:active {
background: ${Color.Blue};
border-color: ${Color.Blue};
}
`;
}
}};
Expand Down Expand Up @@ -77,6 +87,12 @@ const StyledButton = styled.button`
? `
background: ${Color.White};
border-color: ${Color.White};
&:active {
background: ${Color.White};
border-color: ${Color.White};
opacity: 0.8;
}
`
: ''};
${(props: ButtonProps) =>
Expand Down

0 comments on commit 46546b8

Please sign in to comment.