I'm trying to render Clarity tabs horizontally since vertical tabs are not yet available. To be more clear, links are verticals but the main layout is horizontal (links + contents).
NB: I'm using angular 4.x
And the customization is very limited because all clr-tab
s are rendered aside the main ul.nav
element containing all links.
There is no obvious way to determine in pure CSS which one is active. :empty
cannot help.
So, I'm looking for solution with angular to append an active
class on the activated clr-tab
in order to widely display it.
Ideally, something like
<clr-tabs>
<clr-tab *ngFor="..." [ngClass]="{'active': ???????}">
<button type="button" clrTabLink>...</button>
<clr-tab-content *clrIfActive>
....
</clr-tab-content>
</clr-tab>
</clr-tabs>
Thanks
As I said in my comment above, if you can, I would recommend using the vertical nav component
If that's out of the question you can still override the clarity css using the Angular recomended (but deprecated)
As they say in the docs