Open MacGyer opened 2 years ago
I'm sorry for replying this late on the mentioned issue. This was addressed by release v2.1.0 PR #481 Managing Datepicker (and other Materialize components) color schemes can be achieved by using the theming function, please refer to the docs Changing Theme Setting
Currently its possible to switch between light or dark theme
/* Light theme */
document.documentElement.setAttribute('theme', 'light');
localStorage.setItem('theme', 'light');
/* Dark theme */
document.documentElement.setAttribute('theme', 'dark');
localStorage.setItem('theme', 'dark');
Thematic color schemes can be extended to your needs by defining custom Material M3 variables. I hope this addresses your issue.
Before submitting...
Context
The datepicker component does not use the SCSS variables defined for it.
Current Behavior
$datepicker-date-bg
(and others) are defined invariables.scss
, but are never used in the SCSS for the datepicker component.Example: