From 5a8a13a136495e3337ab902aea1018bf17177584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 5 May 2024 14:22:10 +0200 Subject: [PATCH] add no-reduce-motion as tailwind variant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/sidebar-menu.tsx | 4 ++-- tailwind.config.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/sidebar-menu.tsx b/src/components/sidebar-menu.tsx index a862372ee..13011dfec 100644 --- a/src/components/sidebar-menu.tsx +++ b/src/components/sidebar-menu.tsx @@ -143,7 +143,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { } >
{
addVariant('black', '.black &')); +const reducedMotionPlugin = plugin(({ addVariant }) => addVariant('no-reduce-motion', '.no-reduce-motion &')); const config: Config = { content: ['./src/**/*.{html,js,ts,tsx}', './custom/instance/**/*.html', './index.html'], @@ -109,6 +110,7 @@ const config: Config = { formsPlugin, typographyPlugin, blackVariantPlugin, + reducedMotionPlugin, ], };