From e578b57e13d5e2dfc7dd37f52f737ee98b0878e6 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 20 Dec 2024 18:15:11 +0100 Subject: [PATCH] UI: init tailwind popover-open variant --- pkgs/webview-ui/app/tailwind/core-plugin.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/webview-ui/app/tailwind/core-plugin.ts b/pkgs/webview-ui/app/tailwind/core-plugin.ts index aef668b29..8797d1274 100644 --- a/pkgs/webview-ui/app/tailwind/core-plugin.ts +++ b/pkgs/webview-ui/app/tailwind/core-plugin.ts @@ -74,7 +74,12 @@ const mkBorderUtils = ( export default plugin.withOptions( (_options = {}) => - ({ addUtilities, theme }) => { + ({ addUtilities, theme, addVariant, e }) => { + addVariant("popover-open", ({ modifySelectors, separator }) => { + modifySelectors(({ className }) => { + return `.${e(`popover-open${separator}${className}`)}:popover-open`; + }); + }); addUtilities({ // Background colors ".bg-def-1": {