Skip to content

Connections and Arrows Not Displaying Correctly #125

Answered by siarheihuzarevich
Rookxc asked this question in Q&A
Discussion options

You must be logged in to vote

https://angular.dev/guide/components/styling#ng-deep

Angular uses style encapsulation by default, which limits the scope of CSS within a component. This prevents styles from accidentally affecting other components, but can create complications when you need to change the styles of child components or elements created by third-party libraries.

To overcome this encapsulation, the ::ng-deep pseudo-class is used. Using ::ng-deep allows you to “break through” the encapsulation boundaries and apply styles to child components or deeper nested elements.

::ng-deep .f-connection {

    #normal_end {
      fill: var(--gray8);
    }

    #selected_end {
      fill: var(--blue3);
    }

    .f-connect…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Rookxc
Comment options

Comment options

You must be logged in to vote
1 reply
@Rookxc
Comment options

Answer selected by Rookxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants