Topic: Custom Color Hamburger Icon - MDB Pro 6.2.6
gkondrach pro asked 6 years ago
Damian Gemza staff answered 6 years ago
<mdb-navbar SideClass="navbar navbar-dark indigo" [containerInside]="false" [iconBackground]="['custom-hamburger-class']">
.custom-hamburger-class { background-color: rgba(255,51,51,1.0); }
Phillip Jacobs free answered 4 years ago
@Damian Gemza Best Answer Ever. Thank you!
How would i use the same approach but to change the color of the actual icon ?
Konrad Stępień staff commented 4 years ago
Hi @Phillip Jacobs,
Do you want to use something like this? https://mdbootstrap.com/docs/angular/content/icons-usage/#colors
You can set class for the icon.
Is the above example suggested by @Damian Gemza not working as it should?
gkondrach pro answered 6 years ago
Damian Gemza staff answered 6 years ago
gkondrach pro answered 6 years ago
.hamburger-icon-amp { background-color: rgba(255,51,51,1.0); }.html:
<mdb-navbar SideClass="navbar navbar-dark rgba-black-light fixed-top scrolling-navbar" [containerInside]="false" [iconBackground]="['hamburger-icon-amp']">
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: all
- Browser: all
- OS: all
- Provided sample code: No
- Provided link: No