Commit 2be4ee0
fix: add collision padding to tooltips for safe viewport margins (#456)
Adds a default `collisionPadding` of 8px to the `TooltipContent`
primitive so tooltips keep a safe margin from viewport edges instead of
rendering flush against them. This matches the existing convention in
`popover.tsx` and `dropdown-menu.tsx`, which already default
`collisionPadding`. The value remains overridable per-usage.
Closes EN-653.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cc1da58 commit 2be4ee0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments