Browse Source

Fix colors in date range datepicker (#2018)

Co-authored-by: Bartłomiej Gawęda <[email protected]>
Co-authored-by: Paweł Kuna <[email protected]>
BG-Software 8 tháng trước cách đây
mục cha
commit
c51ff28475

+ 5 - 0
.changeset/witty-pens-trade.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Fix colors in date range datepicker

+ 6 - 0
src/scss/vendor/_litepicker.scss

@@ -6,13 +6,19 @@
   --litepicker-button-next-month-color-hover: #{ var(--#{$prefix}primary) };
   --litepicker-button-next-month-color-hover: #{ var(--#{$prefix}primary) };
   --litepicker-day-color: var(--#{$prefix}body-color);
   --litepicker-day-color: var(--#{$prefix}body-color);
   --litepicker-day-color-hover: #{ var(--#{$prefix}primary) };
   --litepicker-day-color-hover: #{ var(--#{$prefix}primary) };
+  --litepicker-is-start-color-bg: #{ var(--#{$prefix}primary) };
   --litepicker-is-end-color-bg: #{ var(--#{$prefix}primary) };
   --litepicker-is-end-color-bg: #{ var(--#{$prefix}primary) };
+  --litepicker-is-in-range-color: #{ var(--#{$prefix}info) };
   --litepicker-is-today-color: #{ var(--#{$prefix}primary) };
   --litepicker-is-today-color: #{ var(--#{$prefix}primary) };
   --litepicker-month-header-color: var(--#{$prefix}body-color);
   --litepicker-month-header-color: var(--#{$prefix}body-color);
   --litepicker-container-months-color-bg: var(--#{$prefix}bg-surface);
   --litepicker-container-months-color-bg: var(--#{$prefix}bg-surface);
   font: inherit;
   font: inherit;
   user-select: none;
   user-select: none;
 
 
+  .day-item.is-in-range {
+    --litepicker-day-color: var(--#{$prefix}light);
+  }
+
   svg {
   svg {
     fill: none !important;
     fill: none !important;
   }
   }