UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

29 lines (21 loc) 873 B
'use strict'; const { applyButtonVariableRename } = require('../_shared.cjs'); module.exports = function transformer(fileInfo) { if (!/\.(scss|sass|less)$/i.test(fileInfo.path)) { return undefined; } const result = applyButtonVariableRename(fileInfo.source); return result !== fileInfo.source ? result : undefined; }; module.exports.aiInstructions = `The Kendo UI SASS/SCSS Button theme variables were prefixed with $kendo- in 2022 R1 to follow the unified naming convention and prevent conflicts with user-defined variables. Before: $button-bg: #336699; $button-text: #ffffff; $button-border: #336699; $button-hover-bg: #264d73; After: $kendo-button-bg: #336699; $kendo-button-text: #ffffff; $kendo-button-border: #336699; $kendo-button-hover-bg: #264d73; The codemod renames all 15 $button-* variables to $kendo-button-* equivalents.`;