Skip to content

SCSS: use adjust if not achromatic helper for all color.adjust#34218

Open
vorobey wants to merge 2 commits into
DevExpress:26_1from
vorobey:26_1_T1331617
Open

SCSS: use adjust if not achromatic helper for all color.adjust#34218
vorobey wants to merge 2 commits into
DevExpress:26_1from
vorobey:26_1_T1331617

Conversation

@vorobey

@vorobey vorobey commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@vorobey vorobey requested a review from a team July 7, 2026 07:26
@vorobey vorobey marked this pull request as ready for review July 7, 2026 08:21
@vorobey vorobey requested a review from a team as a code owner July 7, 2026 08:21
Copilot AI review requested due to automatic review settings July 7, 2026 08:21
@vorobey vorobey requested review from a team as code owners July 7, 2026 08:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates DevExtreme SCSS theme color calculations to route hue/saturation/lightness adjustments through the existing adjust-if-not-achromatic helper, avoiding hue adjustments on achromatic colors (and keeping adjustments consistently in HSL space) across Material/Generic/Fluent widget palettes.

Changes:

  • Replaced sass:color.adjust(..., $hue: ..., $space: hsl, ...) usages with extcolor.adjust-if-not-achromatic(...) in multiple widget _colors.scss files.
  • Added @use "../color" as extcolor; (or ./color) imports where needed to access the helper.
  • Updated several Fluent base/derived accent and danger state variables to use the helper for hue-based adjustments.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/devextreme-scss/scss/widgets/material/loadIndicator/_colors.scss Uses extcolor.adjust-if-not-achromatic for sparkle background variants that adjust hue.
packages/devextreme-scss/scss/widgets/material/informer/_colors.scss Switches informer background adjustments to adjust-if-not-achromatic.
packages/devextreme-scss/scss/widgets/material/cardView/_colors.scss Routes prohibition icon color adjustment through the helper.
packages/devextreme-scss/scss/widgets/generic/loadIndicator/_colors.scss Uses helper for sparkle color variants that adjust hue.
packages/devextreme-scss/scss/widgets/generic/informer/_colors.scss Uses helper for hue-based error/info colors across schemes.
packages/devextreme-scss/scss/widgets/generic/cardView/_colors.scss Uses helper for selected/dropzone accent adjustments that include hue.
packages/devextreme-scss/scss/widgets/fluent/scheduler/_colors.scss Uses helper for hue-based focused cell color in SaaS scheme.
packages/devextreme-scss/scss/widgets/fluent/loadIndicator/_colors.scss Uses helper for hue-based segment border and sparkle colors.
packages/devextreme-scss/scss/widgets/fluent/informer/_colors.scss Uses helper for hue-based error background in light mode.
packages/devextreme-scss/scss/widgets/fluent/gridBase/_colors.scss Uses helper for hue-based focused row background (incl. a no-op saturation argument).
packages/devextreme-scss/scss/widgets/fluent/chat/_colors.scss Uses helper for hue-based primary bubble colors in light/dark.
packages/devextreme-scss/scss/widgets/fluent/cardView/_colors.scss Uses helper for selected/drag/dropzone hue-based accent/danger adjustments.
packages/devextreme-scss/scss/widgets/fluent/calendar/_colors.scss Uses helper for hue-based hover background in dark mode.
packages/devextreme-scss/scss/widgets/fluent/button/_colors.scss Uses helper for hue-based accent/outlined state colors.
packages/devextreme-scss/scss/widgets/fluent/badge/_colors.scss Uses helper for hue-based badge background in dark mode.
packages/devextreme-scss/scss/widgets/fluent/_colors.scss Uses helper for base accent/danger active/selected hue-based adjustments.

Comment thread packages/devextreme-scss/scss/widgets/fluent/badge/_colors.scss
sjbur
sjbur previously approved these changes Jul 7, 2026
@vorobey vorobey self-assigned this Jul 7, 2026

@pharret31 pharret31 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider removing unused imports as copilot suggests

Copilot AI review requested due to automatic review settings July 7, 2026 13:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 7, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated no new comments.

@vorobey vorobey requested review from pharret31 and sjbur July 8, 2026 11:25
@vorobey vorobey requested review from a team July 8, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants