[FIXED] How to completely style an Angular Bootstrap Component


I would like to know if it is possible to completely take control of the style/css of a component that I’m using from ng-bootstrap?

Here’s my problem:

I have this code…

  (navigate)="date = $event.next"
  style="color: black; border: solid 3px red"

And this is the result…

enter image description here

But I would like to change the color of the week days to black instead of being blue. The "color" property only changes the color of the numbers not the week days and I can’t seem to find a way to do it.
Is this even possible?

When I executed the code I inspected the element in hopes of finding some information to help me but my knowledge is very limited so I leave here what I’ve found in hopes of helping you guys.

enter image description here

I tried finding a way to style the class "ngb-dp-weekday small" but couldn’t figure it out.

Thank you all in advance!!


You can use a deep style in your component stylesheet

::ng-deep {
  .ngb-dp-weekday {
    color: black !important;

enter image description here

Check this project.

Answered By – Piyush Jain

Answer Checked By – Cary Denson (Easybugfix Admin)

Leave a Reply

(*) Required, Your email will not be published