Skip to content

Conversation

@VasilyStrelyaev
Copy link
Contributor

No description provided.

@VasilyStrelyaev VasilyStrelyaev self-assigned this Jan 16, 2026
Copilot AI review requested due to automatic review settings January 16, 2026 09:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a compatibility issue with sass-embedded 1.97.1 by downgrading to version 1.93.3 and implementing a defensive fix for color channel value handling. The issue appears to be that sass-embedded 1.97.1 returns color channel values outside the valid 0-255 range after certain color manipulation operations (like color.adjust()), causing incorrect hex color generation.

Changes:

  • Downgraded sass-embedded from 1.97.1 to 1.93.3 in three packages (devextreme, devextreme-themebuilder, devextreme-scss)
  • Added bounds clamping (0-255) and rounding to color channel values in parse-value.ts to ensure valid hex color output
  • Updated tests to include $float-channel-color variable that uses color.adjust() to verify the fix works correctly

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-lock.yaml Updated dependency lockfile with sass-embedded 1.93.3 and all platform-specific packages
packages/devextreme/package.json Downgraded sass-embedded from 1.97.1 to 1.93.3 in devDependencies
packages/devextreme-themebuilder/package.json Downgraded sass-embedded from 1.97.1 to 1.93.3 in dependencies
packages/devextreme-scss/package.json Downgraded sass-embedded from 1.97.1 to 1.93.3 in devDependencies
packages/devextreme-themebuilder/src/modules/parse-value.ts Added bounds clamping and rounding to color channel values to handle out-of-range values from sass color functions
packages/devextreme-themebuilder/tests/modules/compiler.test.ts Added expected $float-channel-color value to test color.adjust() handling
packages/devextreme-themebuilder/tests/modules/compile-manager.test.ts Added expected $float-channel-color value to compilation metadata test
packages/devextreme-themebuilder/tests/data/scss/widgets/generic/_colors.scss Added $float-channel-color variable using color.adjust() to test color manipulation
packages/devextreme-themebuilder/tests/data/compilation-results/no-changes-meta.ts Added $float-channel-color to baseline metadata expectations
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants