From 84adaf443aa84a3ffa03c2c976b9f9a0beacc05d Mon Sep 17 00:00:00 2001 From: Aditya Mitra <55396651+aditya-mitra@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:51:24 +0530 Subject: [PATCH] remove warnings for tailwind minification (#10414) --- packages/ui/src/primitives/tailwind/Slider/index.tsx | 1 - tailwind.config.js | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/primitives/tailwind/Slider/index.tsx b/packages/ui/src/primitives/tailwind/Slider/index.tsx index 94cd7eb836..ca5c425316 100644 --- a/packages/ui/src/primitives/tailwind/Slider/index.tsx +++ b/packages/ui/src/primitives/tailwind/Slider/index.tsx @@ -59,7 +59,6 @@ const Slider = ({ value, min = 0, max = 100, step = 1, width = 200, onChange, on const gradientPercent = Math.round(((value - min) / (max - min)) * 100) const sliderStyle = { - '--tw-shadow': `-${width}px 0 0 ${width}px #214AA6 !important`, background: `linear-gradient(to right, #214AA6 ${gradientPercent}%, #214AA6 ${gradientPercent}%)` } diff --git a/tailwind.config.js b/tailwind.config.js index 0845945e4e..3d059d46e3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -77,10 +77,8 @@ module.exports = { } } }, - purge: { - safelist: [ - ...Array.from({ length: 101 }, (_, i) => `via-[${i}%]`), - ...Array.from({ length: 101 }, (_, i) => `to-[${i}%]`) - ] - } + safelist: [ + ...Array.from({ length: 101 }, (_, i) => `via-[${i}%]`), + ...Array.from({ length: 101 }, (_, i) => `to-[${i}%]`) + ] }