rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

[Feature] Style injection #2

Closed canpan14 closed 3 years ago

canpan14 commented 5 years ago

Love the project! It would be awesome if you could inject a class(es) and it would apply it to the component. Right now the main way to change the styling is to use ng-deep which is deprecated or to add styles to the global class. Talking about the angular one specifically here. Might apply to the others.

(I know you can mess with view encapsulation but that causes other disliked side effects).

carlba commented 5 years ago

@canpan14: Can you provide a sample of how you managed to style it? Strulling with it now :)

canpan14 commented 5 years ago

@carlba Sure =) I added this to my projects main styles.scss You could add whatever css you want in there though.

app-ng7-mat-breadcrumb {
  .mat-toolbar {
    background-color: inherit !important;
  }
}
rajaramtt commented 3 years ago

Out of the scope, No longer supported by the author this future, If anyone interested, Please submit PR