Skip to content

Commit

Permalink
fix the color of the icon in IconButton (#565)
Browse files Browse the repository at this point in the history
* f

* Create slow-doors-look.md
  • Loading branch information
jkbktl authored May 23, 2024
1 parent 4755eb8 commit 1a17092
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slow-doors-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@status-im/components": patch
---

fix the color of the icon in IconButton
2 changes: 1 addition & 1 deletion packages/components/src/icon-button/icon-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const IconButton = (props: Props, ref: Ref<View>) => {
activeBlur={blur ? (selected ? variant : undefined) : undefined}
>
{cloneElement(icon, {
color,
color: icon.props.color ?? color,
size: 20,
})}
</Base>
Expand Down

0 comments on commit 1a17092

Please sign in to comment.