UNPKG

@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) 863 B
'use strict'; const { applyCheckboxLabelRemoval } = require('../_shared.cjs'); module.exports = function transformer(fileInfo) { if (!/\.(css|scss|sass|less)$/i.test(fileInfo.path)) { return undefined; } const result = applyCheckboxLabelRemoval(fileInfo.source); return result !== fileInfo.source ? result : undefined; }; module.exports.aiInstructions = `The .k-checkbox-label element was removed from the Checkbox rendering in Kendo UI 2020 R1. CSS rules that used it in compound selectors should be updated. Before: .k-checkbox-label.k-checked { font-weight: bold; } input.k-checkbox-label + span { ... } After: .k-checked { font-weight: bold; } input + span { ... } The codemod removes .k-checkbox-label from compound selectors. Standalone .k-checkbox-label selectors are left untouched — they require manual review and removal.`;