Skip to content

Commit 07862c0

Browse files
committed
Icons: Document breaking changes and fix issues from #71878
* Remove icon symlink from edit.svg to pencil.svg * Document removal of `edit` and `warning` (removed in #71878) * Also add a specific rule in `lint-staged` to generate icons any time the icons library is modified, thereby catching generation errors even in commits that don't modify JS/TS files. (Before this commit, the only way to catch errors was to commit JS/TS files, which would trigger the NPM `prelint` script, which would then call the icon generator.)
1 parent 1fb096b commit 07862c0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@
296296
"node ./bin/api-docs/are-api-docs-unstaged.js",
297297
"node ./bin/packages/lint-staged-typecheck.js"
298298
],
299+
"packages/icons/src/library/*": [
300+
"npm run -w packages/icons build"
301+
],
299302
"**/tsconfig.json": [
300303
"npm run lint:tsconfig"
301304
]

packages/icons/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Non-breaking, but major change: Switch to SVG icons as canonical source format, letting the system auto-generate the React elements and index. ([#71878](https://github.com/WordPress/gutenberg/pull/71878))
5+
- Breaking change: Remove `edit` and `warning` icons, which were aliases to `pencil` and `cautionFilled`, respectively. Switch to SVG icons as canonical source format, letting the system auto-generate the React elements and index. ([#71878](https://github.com/WordPress/gutenberg/pull/71878)).
66

77
## 10.32.0 (2025-10-01)
88

packages/icons/src/library/edit.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)