From cd931ba62de5cac45f66707a981dc01993add0c4 Mon Sep 17 00:00:00 2001 From: Remy Date: Tue, 6 Aug 2024 17:04:36 +0200 Subject: [PATCH] Push from menu-display-hidden Copy of https://github.com/divriots/create-figma-plugin-ui/pull/14 --- .../textbox/textbox-autocomplete/textbox-autocomplete.tsx | 2 +- packages/ui/src/css/menu.module.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/textbox/textbox-autocomplete/textbox-autocomplete.tsx b/packages/ui/src/components/textbox/textbox-autocomplete/textbox-autocomplete.tsx index f3c1f7a9..4f643945 100644 --- a/packages/ui/src/components/textbox/textbox-autocomplete/textbox-autocomplete.tsx +++ b/packages/ui/src/components/textbox/textbox-autocomplete/textbox-autocomplete.tsx @@ -364,7 +364,7 @@ export function TextboxAutocomplete({ class={createClassName([ menuStyles.menu, disabled === true || isMenuVisible === false - ? menuStyles.hidden + ? menuStyles.displayNone : null, top === true ? textboxAutocompleteStyles.top diff --git a/packages/ui/src/css/menu.module.css b/packages/ui/src/css/menu.module.css index a65aa21a..63286db2 100644 --- a/packages/ui/src/css/menu.module.css +++ b/packages/ui/src/css/menu.module.css @@ -19,6 +19,10 @@ visibility: hidden; } +.displayNone { + display: none; +} + @media screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min-resolution: 1.5dppx) { .menu {