Skip to content

Commit 6eda768

Browse files
committed
feat(ui-icons): modify documentation page and remove clipping paths from the icons code
1 parent 14f9504 commit 6eda768

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

docs/contributor-docs/adding-icons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type: code
2525
</svg>
2626
```
2727

28-
- The files cannot contain [clipping paths](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)! Sadly, when the Designers export icons from Figma, most of the time they have a clipping path around the whole canvas. If the source code has them, manually refactor the code, e.g:
28+
- The files cannot contain [clipping paths](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)! Sadly, when the Designers export icons from Figma, most of the time they have a clipping path around the whole canvas. When an SVG includes clipping paths, the `Icon Font` variant may not render correctly. Specifically, the use of `<g clip-path="...">` and `<clipPath id="...">` elements can cause rendering issues. If the source code has them, manually refactor the code, e.g:
2929

3030
```js
3131
---
Lines changed: 0 additions & 7 deletions
Loading
Lines changed: 0 additions & 7 deletions
Loading
Lines changed: 0 additions & 7 deletions
Loading

0 commit comments

Comments
 (0)