Hi Guys,
I'm trying to migrate my app from using the old @import (v.9.0.0) methodology to the new @use (v.10.0.1) methodology but things are not going well because it would appear only certain variables have the capability of being overridden.
To illustrate create an index file with the following contents:
@use "sass:map"; @use '@progress/kendo-theme-classic/scss/index.scss' as *; // $kendo-colors: map.merge($kendo-colors, k-generate-color-variations('base', red, 'classic')); // $kendo-colors: map.merge($kendo-colors, ( // app-surface: red, // )); // $kendo-checkbox-checked-text: red; // $kendo-table-bg: red; // $kendo-font-size-sm: 12px; // $kendo-input-placeholder-opacity: 0.8; @include kendo-theme--styles(); @debug k-color(base); @debug k-color(app-surface); @debug $kendo-checkbox-checked-text; @debug $kendo-table-bg; @debug $kendo-font-size-sm; @debug $kendo-input-placeholder-opacity;
When compiled the following Debug values are output
Debug: var(--kendo-color-base, #ebebeb) Debug: var(--kendo-color-app-surface, #ffffff) Debug: var(--kendo-color-on-primary, #ffffff) Debug: var(--kendo-color-surface-alt, #ffffff) Debug: 0.75rem Debug: 1
Now uncomment the variable overrides and recompile ... This time the Debug output is as follows
Debug: var(--kendo-color-base, red) Debug: var(--kendo-color-app-surface, red) Debug: var(--kendo-color-on-primary, #ffffff) Debug: var(--kendo-color-surface-alt, #ffffff) Debug: 12px Debug: 1
So as you can see the
$kendo-checkbox-checked-text $kendo-table-bg $kendo-input-placeholder-opacity
variables have not been overridden.
Is this a bug with the new SASS files or can we no longer override all variables?
Regards
Alan