Skip to content

Commit

Permalink
Fix error svg icon (#327)
Browse files Browse the repository at this point in the history
* fix(ui): wrap error svg icon

* docs: add changeset
  • Loading branch information
guerrap authored Aug 3, 2023
1 parent 5541f6d commit 9c98aab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-balloons-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@carrot-kpi/ui": patch
---

Fix an issue with the svg error icon of the inputs components
18 changes: 10 additions & 8 deletions packages/ui/src/components/data-display/error-text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ export const ErrorText = ({
className: className?.root,
})}
>
{typeof children === "string" && !!children && (
<DangerIcon
className={errorTextIconStyles({
variant: "danger",
className: className?.icon,
})}
/>
)}
<div>
{typeof children === "string" && !!children && (
<DangerIcon
className={errorTextIconStyles({
variant: "danger",
className: className?.icon,
})}
/>
)}
</div>
<Typography
variant="xs"
className={{
Expand Down

0 comments on commit 9c98aab

Please sign in to comment.