Topic: After build custom theme the accordion does not reflect primary colo
Expected behavior After build custom theme the accordion will respect primary color (set in theme) when rendered active item header
Actual behavior Themed accordion render active item header as blue (defaulr mdb primary color) Workaround: set primary and secondary color via _ariables.scss file
Resources (screenshots, code snippets etc.)
Theme definition:
@import './mdb/mdb/scss/mdb.pro.scss';
$my-theme-primary: #E09600;
$my-theme-secondary: #6C757D;
$my-theme: mdb-light-theme($my-theme-primary, $my-theme-secondary);
@include mdb-theme($my-theme);
_variables.scss
/*
$primary: #E09600 !default;
$secondary: #6C757D !default;
*/
Grzegorz Bujański staff answered 4 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: PC
- Browser: Edge
- OS: W10
- Provided sample code: No
- Provided link: No