Skip to content

Commit

Permalink
Refactor icons
Browse files Browse the repository at this point in the history
  • Loading branch information
timuric committed Jul 24, 2024
1 parent 57fd62f commit e0ce43b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 1 addition & 4 deletions components/CardGrid/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@
font-size: var(--font-size-sm);
margin-bottom: var(--spacer-2);
}
.cardGrid .container div {
.cardGrid .container svg {
margin-bottom: var(--spacer-3);
color: var(--gray12);
border-radius: 20px;
width: 32px;
}

.cardGrid strong:after {
Expand Down
14 changes: 9 additions & 5 deletions components/Icons/icons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,14 @@ export const Icon32 = ({ name, size = 32 }) => {
}

return (
<div style={{ width: size, height: size }}>
<svg viewBox={`0 0 32 32`} xmlns="http://www.w3.org/2000/svg" fill="none">
{path}
</svg>
</div>
<svg
viewBox={`0 0 32 32`}
xmlns="http://www.w3.org/2000/svg"
fill="none"
width={size}
height={size}
>
{path}
</svg>
);
};

0 comments on commit e0ce43b

Please sign in to comment.