You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/components/CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
-`FormTokenField`: Refactor away from `_.difference()` ([#43224](https://github.com/WordPress/gutenberg/pull/43224/)).
28
28
-`Autocomplete`: use `KeyboardEvent.code` instead of `KeyboardEvent.keyCode` ([#43432](https://github.com/WordPress/gutenberg/pull/43432/)).
29
29
-`ConfirmDialog`: replace (almost) every usage of `fireEvent` with `@testing-library/user-event` ([#43429](https://github.com/WordPress/gutenberg/pull/43429/)).
30
+
-`Popover`: Introduce new `flip` and `resize` props ([#43546](https://github.com/WordPress/gutenberg/pull/43546/)).
30
31
31
32
### Internal
32
33
@@ -62,7 +63,7 @@
62
63
### Experimental
63
64
64
65
-`FormTokenField`: add `__experimentalAutoSelectFirstMatch` prop to auto select the first matching suggestion on typing ([#42527](https://github.com/WordPress/gutenberg/pull/42527/)).
65
-
-`Popover`: Refactor`__unstableForcePosition` to separate `__unstableFlip` and `__unstableResize` props ([#43546](https://github.com/WordPress/gutenberg/pull/43546/)).
66
+
-`Popover`: Deprecate`__unstableForcePosition`, now replaced by new `flip` and `resize` props ([#43546](https://github.com/WordPress/gutenberg/pull/43546/)).
Copy file name to clipboardexpand all lines: packages/components/src/popover/README.md
+20
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,26 @@ Each of these base placements has an alignment in the form -start and -end. For
71
71
- Required: No
72
72
- Default: `"bottom-start"`
73
73
74
+
### flip
75
+
76
+
Specifies whether the `Popover` should flip across its axis if there isn't space for it in the normal placement.
77
+
78
+
When the using a 'top' placement, the `Popover` will switch to a 'bottom' placement. When using a 'left' placement, the popover will switch to a 'right' placement.
79
+
80
+
The `Popover` will retain its alignment of 'start' or 'end' when flipping.
81
+
82
+
- Type: `Boolean`
83
+
- Required: No
84
+
- Default: `true`
85
+
86
+
### resize
87
+
88
+
Adjusts the height of the `Popover` to prevent overflow.
89
+
90
+
- Type: `Boolean`
91
+
- Required: No
92
+
- Default: `true`
93
+
74
94
### offset
75
95
76
96
The distance (in pixels) between the anchor and popover.
0 commit comments