@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
25 lines (17 loc) • 770 B
JavaScript
;
const { applyIconClassRename } = require('../_shared.cjs');
module.exports = function transformer(fileInfo) {
if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) {
return undefined;
}
const result = applyIconClassRename(fileInfo.source);
return result !== fileInfo.source ? result : undefined;
};
module.exports.aiInstructions = `Icon CSS classes were renamed in Kendo UI 2019 R1 to use the k-icon k-i-* two-class pattern instead of the legacy single-class k-icon-* format.
Before:
.k-icon-zoom-in { color: blue; }
.k-icon-home { font-size: 18px; }
After:
.k-icon.k-i-zoom-in { color: blue; }
.k-icon.k-i-home { font-size: 18px; }
The codemod handles 89 icon class renames. Review any custom icons not covered by the mapping.`;