Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon bottom is clipped #60

Closed
EricAtomic opened this issue Jan 15, 2025 · 1 comment · Fixed by #61
Closed

Icon bottom is clipped #60

EricAtomic opened this issue Jan 15, 2025 · 1 comment · Fixed by #61

Comments

@EricAtomic
Copy link
Contributor

Hi, I found this icon's bottom is being clipped, not sure if it's related to clipPath.

<svg width="31" height="40" viewBox="0 0 31 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_201_934)">
<path d="M15.6667 6.875C16.4987 6.875 17.2663 7.31445 17.6881 8.03516L30.3444 29.5977C30.7721 30.3242 30.7721 31.2207 30.3561 31.9473C29.9401 32.6738 29.1608 33.125 28.3229 33.125H3.01041C2.17252 33.125 1.39322 32.6738 0.977207 31.9473C0.561192 31.2207 0.567051 30.3184 0.988926 29.5977L13.6452 8.03516C14.0671 7.31445 14.8346 6.875 15.6667 6.875ZM15.6667 14.375C14.8874 14.375 14.2604 15.002 14.2604 15.7812V22.3438C14.2604 23.123 14.8874 23.75 15.6667 23.75C16.446 23.75 17.0729 23.123 17.0729 22.3438V15.7812C17.0729 15.002 16.446 14.375 15.6667 14.375ZM17.5417 27.5C17.5417 27.0027 17.3441 26.5258 16.9925 26.1742C16.6409 25.8225 16.1639 25.625 15.6667 25.625C15.1694 25.625 14.6925 25.8225 14.3408 26.1742C13.9892 26.5258 13.7917 27.0027 13.7917 27.5C13.7917 27.9973 13.9892 28.4742 14.3408 28.8258C14.6925 29.1775 15.1694 29.375 15.6667 29.375C16.1639 29.375 16.6409 29.1775 16.9925 28.8258C17.3441 28.4742 17.5417 27.9973 17.5417 27.5Z" fill="#ED1D3D"/>
</g>
<defs>
<clipPath id="clip0_201_934">
<rect width="30" height="30" fill="white" transform="translate(0.666656 5)"/>
</clipPath>
</defs>
</svg>

Rendered in browser:
warn

Rendered in SwiftDraw:
image

@swhitty swhitty linked a pull request Feb 2, 2025 that will close this issue
@swhitty
Copy link
Owner

swhitty commented Feb 11, 2025

Fix is available in 0.18.2 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants