Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!

Alberto pro asked 7 years ago


Hi, how do you set the navbar background and foreground colors to custom values?

Alberto pro answered 7 years ago


Just answered my own questions. I figure I can post the answer to help others that mey have the same issue

Start your code here

I was setting the color in the component scss. Placing it in the styles.scss makes it work.

Another option is to use

import {ViewEncapsulation} from '@angular/core';

and then encapsulation: ViewEncapsulation.None in your @component



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags