Topic: Angular Side navbar , How to change background color ?
winitserver2018 asked 7 years ago
Alberto pro answered 7 years ago
.sn-bg-1 {
background-image:none!important; //removes the image
background-color: $brand-maroon!important
}
This works for me in development. In production it reverts to the original color so I'd like to understand how too.
Damian Gemza staff answered 7 years ago
<mdb-sidenav #sidenav class="fixed green darken-4" [fixed]="true">
Alberto pro commented 7 years ago
Yes but the problem here is if you have a custom colour your palette doesn't cover; I guess the other option would be to ispect your color css class and change it accordingly.Damian Gemza staff commented 7 years ago
Alberto, did you tried to put this class in global stylesheet? For me it's working fine: .sn-bg-1 { background-image: none !important; background-color: red !important; } Best Regards, DamianFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No