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 thenng 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.
Reference : https://github.com/sass/sass/issues/2888