From 450408b6cb9b67a85986513e748bacce3fd8da77 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 20 Dec 2024 19:15:37 +0100 Subject: [PATCH] UI: suppress type problems with tailwind --- pkgs/webview-ui/app/tailwind/core-plugin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/webview-ui/app/tailwind/core-plugin.ts b/pkgs/webview-ui/app/tailwind/core-plugin.ts index 8797d1274..f578dd00c 100644 --- a/pkgs/webview-ui/app/tailwind/core-plugin.ts +++ b/pkgs/webview-ui/app/tailwind/core-plugin.ts @@ -10,7 +10,7 @@ const toRGB = (value: string) => const mkBorderUtils = ( theme: (n: string) => unknown, prefix: string, - cssProperty: string, + cssProperty: string ) => ({ // - def colors [`.${prefix}-def-1`]: { @@ -75,7 +75,9 @@ const mkBorderUtils = ( export default plugin.withOptions( (_options = {}) => ({ addUtilities, theme, addVariant, e }) => { + // @ts-expect-error: lib of tailwind has no types addVariant("popover-open", ({ modifySelectors, separator }) => { + // @ts-expect-error: lib of tailwind has no types modifySelectors(({ className }) => { return `.${e(`popover-open${separator}${className}`)}:popover-open`; }); @@ -276,5 +278,5 @@ export default plugin.withOptions( }, ...typography, }, - }), + }) );