Skip to content

Commit

Permalink
Tooltip: Fix jitter at edge of screen by enabling __unstableShift (#4…
Browse files Browse the repository at this point in the history
…1524)

* 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>
  • Loading branch information
andrewserong and aaronrobertshaw authored Jun 3, 2022
1 parent a3f478b commit 0a460f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fix

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

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const addPopoverToGrandchildren = ( {
aria-hidden="true"
animate={ false }
offset={ 12 }
__unstableShift
>
{ text }
<Shortcut
Expand Down

0 comments on commit 0a460f1

Please sign in to comment.