Skip to content

Commit

Permalink
fix(Icon): close circle icon (#4712)
Browse files Browse the repository at this point in the history
* fix: close circle icon

* fix: unit testing due to changes

---------

Co-authored-by: Matthias <[email protected]>
  • Loading branch information
lisalupi and matthprost authored Jan 30, 2025
1 parent 9de3560 commit 310e32e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-fishes-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/icons": patch
---

Fix `CloseCircleOutlineIcon` sizing in viewport
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export const CloseCircleOutlineIcon = ({
}: Omit<IconProps, 'children'>) => (
// eslint-disable-next-line react/jsx-props-no-spreading
<Icon {...props}>
<path d="M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m2.59 6L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z" />
<path d="M10 16.67c-3.675 0-6.67-2.995-6.67-6.67s2.995-6.67 6.67-6.67 6.67 2.995 6.67 6.67-2.995 6.67-6.67 6.67m0-15C5.39 1.67 1.67 5.39 1.67 10s3.72 8.33 8.33 8.33 8.33-3.72 8.33-8.33S14.61 1.67 10 1.67m2.16 5L10 8.83 7.84 6.67 6.67 7.84 8.83 10 6.67 12.16 7.84 13.33 10 11.17l2.16 2.16 1.17-1.17L11.17 10l2.16-2.16z" />
</Icon>
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ exports[`PasswordCheck > render with custom values 1`] = `
.emotion-4 {
vertical-align: middle;
fill: #727683;
height: 20px;
width: 20px;
min-width: 20px;
min-height: 20px;
height: 1.25rem;
width: 1.25rem;
min-width: 1.25rem;
min-height: 1.25rem;
}
.emotion-4 .fillStroke {
Expand All @@ -59,10 +59,10 @@ exports[`PasswordCheck > render with custom values 1`] = `
.emotion-10 {
vertical-align: middle;
fill: #22674e;
height: 20px;
width: 20px;
min-width: 20px;
min-height: 20px;
height: 1.25rem;
width: 1.25rem;
min-width: 1.25rem;
min-height: 1.25rem;
}
.emotion-10 .fillStroke {
Expand All @@ -84,7 +84,7 @@ exports[`PasswordCheck > render with custom values 1`] = `
viewBox="0 0 20 20"
>
<path
d="M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m2.59 6L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41z"
d="M10 16.67c-3.675 0-6.67-2.995-6.67-6.67s2.995-6.67 6.67-6.67 6.67 2.995 6.67 6.67-2.995 6.67-6.67 6.67m0-15C5.39 1.67 1.67 5.39 1.67 10s3.72 8.33 8.33 8.33 8.33-3.72 8.33-8.33S14.61 1.67 10 1.67m2.16 5L10 8.83 7.84 6.67 6.67 7.84 8.83 10 6.67 12.16 7.84 13.33 10 11.17l2.16 2.16 1.17-1.17L11.17 10l2.16-2.16z"
/>
</svg>
<p
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/PasswordCheck/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export const PasswordCheck = ({
<CheckCircleOutlineIcon
sentiment="success"
prominence="weak"
size={20}
size="large"
/>
) : (
<CloseCircleOutlineIcon
sentiment="neutral"
prominence="weak"
size={20}
size="large"
/>
)}

Expand Down

0 comments on commit 310e32e

Please sign in to comment.