Skip to content

Commit

Permalink
fix(badge): adjust error counter icon color (#2302)
Browse files Browse the repository at this point in the history
* fix(badge): adjust error counter icon color

* chore(badge): add changeset
  • Loading branch information
gloriliale committed Mar 18, 2022
1 parent 6a1f119 commit 3044506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/thin-mangos-report.md
@@ -0,0 +1,6 @@
---
'@twilio-paste/badge': patch
'@twilio-paste/core': patch
---

[Badge] adjust the error icon color for the error counter variant
4 changes: 1 addition & 3 deletions packages/paste-core/components/badge/src/index.tsx
Expand Up @@ -67,9 +67,7 @@ export const Badge = React.forwardRef<HTMLElement, BadgeProps>(
ref={ref}
{...badgeStyles}
>
{variant === 'error_counter' ? (
<ErrorIcon element={`${element}_ICON`} color="colorTextIconError" decorative size="sizeIcon10" />
) : null}
{variant === 'error_counter' ? <ErrorIcon element={`${element}_ICON`} decorative size="sizeIcon10" /> : null}
{resizedChildren}
</Box>
);
Expand Down

0 comments on commit 3044506

Please sign in to comment.