Skip to content

Include RangeMarker styles in the chart CSS build#1296

Merged
mstijak merged 1 commit into
masterfrom
fix/rangemarker-scss
May 19, 2026
Merged

Include RangeMarker styles in the chart CSS build#1296
mstijak merged 1 commit into
masterfrom
fix/rangemarker-scss

Conversation

@mstijak
Copy link
Copy Markdown
Member

@mstijak mstijak commented May 19, 2026

Problem

RangeMarker.scss was missed in the Sass @use migration. It still referenced $cx-besm, cx-should-include, and $cx-default-range-marker-color from the legacy global scope, so it couldn't be @used — and charts/index.scss (correctly, at the time) left it out.

The result: RangeMarker.scss was an orphaned file. Its cx-rangemarker mixin was never invoked, so the .{e}rangemarker-path styles (stroke colour, width, fill: none) never reached the compiled CSS — the component rendered unstyled.

Fix

  • RangeMarker.scss@use besm, include, and variables, matching every other charts/*.scss file.
  • charts/index.scss@use "RangeMarker" alongside the other chart components.

Verification

yarn build succeeds, and the rule now appears in packages/cx/dist/charts.css:

.cxe-rangemarker-path {
  stroke: #696969;
  fill: none;
  stroke-width: 1px;
}

RangeMarker.scss was missed in the Sass @use migration: it still relied
on the legacy global scope for `$cx-besm`, `cx-should-include` and
`$cx-default-range-marker-color`, so it could not be @use'd and was left
out of charts/index.scss. As a result its styles never reached the
compiled CSS and RangeMarker rendered unstyled.

- RangeMarker.scss: @use besm, include and variables, like the other
  charts/*.scss files.
- charts/index.scss: @use "RangeMarker" alongside the other components.
@mstijak mstijak merged commit 5a81b1b into master May 19, 2026
2 checks passed
@mstijak mstijak deleted the fix/rangemarker-scss branch May 19, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant