Skip to content

Commit

Permalink
feat(button): Add current color to start/end icons (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
hachiojidev authored Mar 9, 2021
1 parent 6e93077 commit a8901f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ const Button = <E extends ElementType = "button">(props: ButtonProps<E>): JSX.El
{isValidElement(startIcon) &&
cloneElement(startIcon, {
mr: "0.5rem",
color: "currentColor",
})}
{children}
{isValidElement(endIcon) &&
cloneElement(endIcon, {
ml: "0.5rem",
color: "currentColor",
})}
</>
</StyledButton>
Expand Down

0 comments on commit a8901f8

Please sign in to comment.