From d945edeea1dc088fd62939eb2b23e4395413e1de Mon Sep 17 00:00:00 2001 From: Matthieu Libeer Date: Wed, 13 Mar 2024 15:58:56 +0100 Subject: [PATCH 1/2] Toggle > injectToggle.tsx > Make hidden elements overflow hidden to account for inner elements with a vertical margin --- packages/toggle/src/injectToggle.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/toggle/src/injectToggle.tsx b/packages/toggle/src/injectToggle.tsx index 5eebf2d73f..b211623873 100644 --- a/packages/toggle/src/injectToggle.tsx +++ b/packages/toggle/src/injectToggle.tsx @@ -17,4 +17,5 @@ const hiddenStyle: React.CSSProperties = { visibility: 'hidden', height: 0, margin: 0, + overflow: 'hidden', }; From 2c030a0e8a43145a6fda7730b0b9e61821a7ab17 Mon Sep 17 00:00:00 2001 From: Ziad Beyens Date: Thu, 14 Mar 2024 09:46:02 +0100 Subject: [PATCH 2/2] Create witty-vans-lick.md --- .changeset/witty-vans-lick.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/witty-vans-lick.md diff --git a/.changeset/witty-vans-lick.md b/.changeset/witty-vans-lick.md new file mode 100644 index 0000000000..c9c412ab47 --- /dev/null +++ b/.changeset/witty-vans-lick.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-toggle": patch +--- + +`injectToggle`: Make hidden elements overflow hidden to account for inner elements with a vertical margin