-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Icons 4.0 changes
The icons build pipeline has been refactored in @blueprintjs/icons
v4.0. We now use fantasticon in place of most of our custom build scripts. This allows us to keep supporting the icon font without maintaining the font files themselves (they are automatically generated from the SVG sources).
This change in tooling comes with small breaking changes, listed in order of likelihood for impacting your code base:
-
Icon codepoints are no longer exported as Less variables. They are still accessible in Sass and TypeScript. In Sass, they are only provided as a map, not individual variables:
@import "~@blueprintjs/icons/lib/variables"; // Sass example... map-get($blueprint-icons-codepoints, "arrow-right");
import { IconCodepoints } from "@blueprintjs/icons"; // TypeScript example... IconCodepoints["arrow-right"];
-
Sass variables for the icon font names have changed, they are now
$blueprint-icons-16
and$blueprint-icons-20
. -
The
$icon-classes
variable now lives in the@blueprintjs/core
package, not@blueprintjs/icons
.
- react-day-picker v8 migration
- HotkeysTarget & useHotkeys migration
- PanelStack2 migration
- Table 6.0 changes