Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/contributor-docs/adding-icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type: code
</svg>
```

- 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:
- 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:

```js
---
Expand Down
3 changes: 3 additions & 0 deletions packages/ui-icons/icons.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ const bidirectional = [
'open-folder',
'outdent',
'outdent2',
'undo',
'quiz-stats-high',
'quiz-stats-low',
'quiz',
'redo',
'replied',
'reply-2',
'reply-all-2',
Expand All @@ -158,6 +160,7 @@ const bidirectional = [
'toggle-end'
]

/* eslint-disable no-undef */
module.exports = {
source,
destination,
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-icons/svg/Line/redo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/ui-icons/svg/Line/undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/ui-icons/svg/Solid/redo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/ui-icons/svg/Solid/undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading