I created a blank Ionic4 app and within it, in the src/global.scss
I declare the following $padding: 16px
. I then try to use the $padding
in an element in home.page.scss
as follows:
.highlight {
padding: $padding;
}
I expected it to output the following as it does in Ionic3:
.highlight {
padding: 16px;
}
Instead I am getting an Undefined variable.
during the build process. Can we not use global SCSS variables within the page styles anymore?