@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
22 lines (15 loc) • 880 B
JavaScript
;
const { SCHEDULER_RE_CSS, applySchedulerSelector } = require('../_shared.cjs');
module.exports = function transformer(fileInfo) {
if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) {
return undefined;
}
const updated = applySchedulerSelector(fileInfo.source, SCHEDULER_RE_CSS);
return updated !== fileInfo.source ? updated : undefined;
};
module.exports.aiInstructions = `The Scheduler and Gantt button group selectors now require the parent component class qualifier in Kendo UI 2026 Q2 to avoid conflicts with other button groups.
Before:
.k-scheduler .k-button-group { ... }
.k-gantt .k-button-group { ... }
After (no change needed — the codemod ensures the selector already includes the parent context).
Note: This codemod removes overly broad .k-button-group selectors nested under .k-scheduler or .k-gantt that lack proper scoping.`;