Topic: Do themes only apply on MDB components?
bellevilleweb pro premium priority asked 7 months ago
Expected behavior
Adding data attribute data-mdb-theme="dark"
to an element should make all children use dark theme. I.E. div
s would have dark backgrounds and light foregrounds etc.
Actual behavior
Seems this data attribute only triggers on certain elements i.e. a div.card
or button
.
Kamila Pieńkowska staff answered 7 months ago
It depends. Changing theme do not force changing background color if it has background color set to specific color. To see it take effect it need to be styled with class that changes with theme. You can see how this plays out when you go to our color docs and change site theme. You will see which colors are suppose to change.
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: MDB5 7.3.0
- Device: Laptop
- Browser: Firefox
- OS: Linux / Pop!_OS
- Provided sample code: No
- Provided link: No