Skip to content

Commit

Permalink
Merge pull request #12 from cesarhenrq/fix/button-border-color
Browse files Browse the repository at this point in the history
Fix/button border color
  • Loading branch information
cesarhenrq authored Sep 27, 2023
2 parents 3ea2257 + 2816f2a commit 2e03e7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const Button = styled.button<ButtonProps>`
border-radius: 0.5rem;
background-color: ${({ backgroundColor }) =>
backgroundColor ? `var(--${backgroundColor})` : 'var(--yellow)'};
border-color: ${({ borderColor, backgroundColor }) =>
borderColor ? `var(--${borderColor})` : `var(--${backgroundColor})`};
border: 1px solid;
border: ${({ borderColor, backgroundColor }) =>
borderColor
? `1px solid var(--${borderColor})`
: `1px solid var(--${backgroundColor})`};
`;

0 comments on commit 2e03e7b

Please sign in to comment.