In a recent Angular 7 project, I have a component (defined in the file file-list.component.ts) in which there is a mat-paginator (a component from Angular material component library). When I want to change the background color of the mat-paginator, I first tried to put
.mat-paginator-container {
background-color: yellow;
}
in film-list.component.scss (the stylesheet for associated with this component), the background color of the paginator did not change. When I put this in app.component.scss, it did not work either. But when I put it in the src/styles.css, the background color is correctly changed.
So my questions are:
- What is the difference between
src/styles.scss,app.component.scssandfilm-list.component.scss? - What is the scope of each of these files?
- What is the influence of
bodyselector used in these stylesheet files?