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

Commit

Permalink
Use foreground color for button icon
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland committed Dec 14, 2021
1 parent 6de2082 commit 27dcd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/buttons/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const Button = (props: ButtonProps): JSX.Element => {
) : (
<>
<p>{props.label}</p>
{props.icon && <Icon icon={props.icon} />}
{props.icon && <Icon icon={props.icon} color={props.foregroundColor} />}
{!props.icon && props.faIcon && <FontAwesomeIcon icon={props.faIcon} />}
</>
)}
Expand Down

0 comments on commit 27dcd03

Please sign in to comment.