Angular 10: View Encapsulation

Yes it seems we could make our example (and perhaps component) work better here, sorry. We’re not very well versed in how Angular expects to do things.

Could you pierce encapsulation within the CSS just for the Diagrams, which will allow you to at least set encapsulation to None otherwise? Doing something like:

:host ::ng-deep .myDiagramDiv {
  background: whitesmoke;
  width: 700px;
  height: 300px;
  border: 1px solid black;
}

Works in the GoJS Angular Basic sample.

Or is that just shifting the problem around?