I have an angular project and created a component with scss settings that don't seem to select when I'm nesting the selector under ng-bootstrap tab class names. Why can't I use a selector like this .nav-link .badge
in my scss? However something like .card-body .badge
does select the element.
template file excerpt
<ngb-tab id="projectInfoTab">
<ng-template ngbTabTitle>
Project info<span class="badge badge-pill badge-danger">4</span>
</ng-template>
<ng-template ngbTabContent>
...
scss
.nav-link .badge {
margin-left: .5em;
}
Here's the rendered html
<div _ngcontent-c3 class="card-body">
<a class="nav-link active" href="" role="tab" id="projectInfoTab" aria-controls="projectInfoTab-panel" aria-expanded="true" aria-disabled="false">
Project info<span _ngcontent-c3="" class="error-badge badge badge-pill badge-danger">4</span>
</a>
</div>