Skip to content
New issue

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

SCSS compilation not working properly #18497

Closed
kumaresan-subramani opened this issue Aug 11, 2020 · 3 comments
Closed

SCSS compilation not working properly #18497

kumaresan-subramani opened this issue Aug 11, 2020 · 3 comments

Comments

@kumaresan-subramani
Copy link

HI Team,

Below is my scss file

.mat {
@import "ej2-base/styles/material.scss";
@import "ej2-buttons/styles/material.scss";
@import "ej2-popups/styles/material.scss";
@import "ej2-splitbuttons/styles/material.scss";
}
.boot{
    @import "ej2-base/styles/bootstrap.scss";
    @import "ej2-buttons/styles/bootstrap.scss";
    @import "ej2-popups/styles/bootstrap.scss";
    @import "ej2-splitbuttons/styles/bootstrap.scss";
}

In here, i want to load material theme while changing class to the body.But styles not get added

Here i have attched my sample
scsssIssue.zip

Repo steps

  • Download above sample

  • GIve npm i command then ng serve

  • you will see button in browser

  • Then click click me button - style wont get added'

if you chage scss like below

@import "ej2-base/styles/material.scss";
@import "ej2-buttons/styles/material.scss";
@import "ej2-popups/styles/material.scss";
@import "ej2-splitbuttons/styles/material.scss";

Style getting added properly

@kumaresan-subramani
Copy link
Author

Reference - sass/sass#2888

@kumaresan-subramani
Copy link
Author

P.S. You are setting an include paths of node_modules/@syncfusion, but after npm install that directory doesn't contain the files that you are trying to import. You should look into that directory to see what SCSS files you have.

Read questions clearly then start replying - Just my repo steps and start replying otherwise please dont reply

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant