@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
27 lines (20 loc) • 1.14 kB
JavaScript
;
const { applyQ4ExtraClassChanges } = require('../_shared.cjs');
module.exports = function transformer(fileInfo) {
if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) {
return undefined;
}
const updated = applyQ4ExtraClassChanges(fileInfo.source);
return updated !== fileInfo.source ? updated : undefined;
};
module.exports.aiInstructions = `Several CSS classes were renamed or removed across multiple components in Kendo UI 2024 Q4:
- k-button-flat-primary → k-button-flat-base (AIPrompt copy button, DockManager inactive tab buttons)
- k-pivotgrid-header-total → k-pivotgrid-total (PivotGridV2 aggregate total row)
- k-widget stripped from compound selectors on: .k-tabstrip, .k-gridlayout, .k-imageeditor, .k-map, .k-menu, .k-pdfviewer, .k-stack-layout
- km-widget stripped from compound selectors on: .k-map
- k-tabstrip-item stripped from .k-item.k-tabstrip-item compound (TabStrip tab items)
Example:
Before: .k-tabstrip.k-widget { border: 1px solid; }
After: .k-tabstrip { border: 1px solid; }
Before: .k-button-flat-primary { color: blue; }
After: .k-button-flat-base { color: blue; }`;