Skip to content

Commit

Permalink
Merge pull request #13 from cesarhenrq/qa
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 4fa2e97 + 2e03e7b commit 3453b1e
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 3453b1e

Please sign in to comment.