0

I use ngx-tabset , I could manage to override the css but I had to manualy add the class suffix [_ngcontent-..] to make it work

so I wanted to create a sass library that I could use anywhere, but it does not use the same suffix as the component instance

my overriding style (in file sassLibrary/tabs.scss)

.tabset-style ul.tabset-header li
{
   ...
}

in html page, it looks like

.tabset-style[_ngcontent-c13]   ul.tabset-header[_ngcontent-c13] li[_ngcontent-c13] {
   ...
}

but the tabs component uses this style sheet instead :

.tabset-style[_ngcontent-c14]   ul.tabset-header[_ngcontent-c14] li[_ngcontent-c14]{
   ...
}

how can I make the sass import use the same css suffix than the one used by the tabs component ?

thanks

ninja
  • 463
  • 1
  • 7
  • 14

1 Answers1

0

So far, disabling encapsulation would do the trick

ViewEncapsulation:None

but the problem with that is that everytime you want to customize styles, you virtualy have no choice, but to get rid of encapsulation

if anyone knows better...I am all ears

ninja
  • 463
  • 1
  • 7
  • 14