Skip to content

Commit 0a460f1

Browse files
Tooltip: Fix jitter at edge of screen by enabling __unstableShift (#41524)
* Tooltip: Fix jitter at edge of screen by enabling __unstableShift * Add changelog entry * Fix typo in changelog Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
1 parent a3f478b commit 0a460f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/components/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bug Fix
66

7+
- `Tooltip`: Opt in to `__unstableShift` to ensure that the Tooltip is always within the viewport. ([#41524](https://github.com/WordPress/gutenberg/pull/41524))
78
- `FormTokenField`: Do not suggest the selected one even if `{ value: string }` is passed ([#41216](https://github.com/WordPress/gutenberg/pull/41216)).
89
- `CustomGradientBar`: Fix insertion and control point positioning to more closely follow cursor. ([#41492](https://github.com/WordPress/gutenberg/pull/41492))
910

packages/components/src/tooltip/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const addPopoverToGrandchildren = ( {
6565
aria-hidden="true"
6666
animate={ false }
6767
offset={ 12 }
68+
__unstableShift
6869
>
6970
{ text }
7071
<Shortcut

0 commit comments

Comments
 (0)