Datepicker colors aren't affected by theme or color mode
- Status
- Closed
- Subject
- Datepicker colors aren't affected by theme or color mode
- Category
- Regression
- Resolution status
- New
- Submitted by
- Gary Cunningham-Lee
- Lastmod by
- Gary Cunningham-Lee
- Rating
- Description
The datepicker modal in master has its own CSS and doesn't respect the properties of themes or color modes. I tried
Copy to clipboard[data-bs-theme=dark] { .dp__theme_light { --dp-background-color: var(--bs-body-bg) !important; --dp-text-color: var(--bs-body-color) !important; } }
for example in a theme's _css-variables.scss file had it had no effect. The datepicker's CSS always was used instead.Similarly, because the datepicker uses different classes, the theme's Bootstrap class properties have no effect. Is there a way to systematically map the datepicker styles to the themes' styles? It seems to be harder to override the datepicker's CSS rules with Tiki CSS rules simply by making the Tiki rules stronger (giving the selector more specificity) the way that jquery-ui rules could be overridden.
- Solution
- The problem was fixed by adding
dp-background-color: var(bs-body-bg) to .dp__theme_light { } in src/js/vue-widgets/datetime-picker/src/custom.scss. Thanks to Merci Jacob for pointing me to this file. - Workaround
- Importance
- 7
- Easy to solve?
- 3
- Priority
- 21
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8698
- Created
- Wednesday 02 October, 2024 09:51:12 UTC
by Gary Cunningham-Lee - LastModif
- Wednesday 02 October, 2024 13:42:12 UTC