1

How can I change the color of the navigator button of p-galleria on primeng?I have already tried to override the background-color property of .p-galleria .p-galleria-item-nav with css but it didn't work.

.p-galleria .p-galleria-item-nav {
     background-color: slategray !important;
}
PopJoestar
  • 462
  • 1
  • 4
  • 10
  • 1
    Try to add `:host ::ng-deep` in front of `.p-galleria .p-galleria-item-nav {` to override PrimeNG styles. – Antikhippe Dec 22 '20 at 10:38

1 Answers1

0

you need to put the style in the global css file

style.css

.p-galleria .p-galleria-item-nav {
     background-color: slategray !important;
}

this style will effect all project and it is way good to overwrite component base theme

Muhammed Albarmavi
  • 23,240
  • 8
  • 66
  • 91