We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error at build using theme overrides for igxButton
npm install
npm run build
SCSS
$custom-palette: palette( $primary: #1766bb, $secondary: #0c7a2d, $surface: #fff ); $secondary-text: contrast-color($custom-palette, 'secondary'); $custom-button-theme: button-theme( $background: $secondary-text, $foreground: #0c7a2d, $hover-foreground: #0c7a2d, $focus-foreground: #0c7a2d ); :host ::ng-deep { @include css-vars($custom-button-theme); }
The compilation fails
./src/app/buttons-style/buttons-style.component.scss?ngResource - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): $color: color-mix(in oklch, var(--ig-secondary-500-contrast) 100%, transparent) is not a color. ╷ 155 │ $focus-background: color.scale($background, $lightness: 5%); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ node_modules\igniteui-angular\lib\core\styles\components\button\_button-theme.scss 155:32 button-theme() src\app\buttons-style\buttons-style.component.scss 19:23 root stylesheet
The compilations works. It may be related to Angular CLI version
Attach a sample if available, and screenshots, if applicable. ignitueui-theme-button-fails.zip ignitueui-theme-button-works.zip
The text was updated successfully, but these errors were encountered:
simeonoff
No branches or pull requests
Description
Error at build using theme overrides for igxButton
Steps to reproduce
npm install
andnpm run build
SCSS
Result
The compilation fails
Expected result
The compilations works. It may be related to Angular CLI version
Attachments
Attach a sample if available, and screenshots, if applicable.
ignitueui-theme-button-fails.zip
ignitueui-theme-button-works.zip
The text was updated successfully, but these errors were encountered: