Skip to content

Commit

Permalink
Merge pull request #3023 from udecode/Liboul-toggle-fix-inner-element…
Browse files Browse the repository at this point in the history
…s-with-margin

Toggle > injectToggle.tsx > Make hidden elements overflow hidden to account for inner elements with a vertical margin
  • Loading branch information
zbeyens authored Mar 14, 2024
2 parents cdf9654 + c53466b commit 624edd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-vans-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@udecode/plate-toggle": patch
---

`injectToggle`: Make hidden elements overflow hidden to account for inner elements with a vertical margin
1 change: 1 addition & 0 deletions packages/toggle/src/injectToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ const hiddenStyle: React.CSSProperties = {
visibility: 'hidden',
height: 0,
margin: 0,
overflow: 'hidden',
};

0 comments on commit 624edd3

Please sign in to comment.