Skip to content

Commit

Permalink
DropdownMenu v2: change default placement to match the legacy Dropdow…
Browse files Browse the repository at this point in the history
…nMenu component (WordPress#51133)

* Update docs

* CHANGELOG
  • Loading branch information
ciampo authored and sethrubenstein committed Jul 13, 2023
1 parent 7be0647 commit 7afeea4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
### Experimental

- `DropdownMenu` v2: Tweak styles ([#50967](https://github.com/WordPress/gutenberg/pull/50967), [#51097](https://github.com/WordPress/gutenberg/pull/51097)).
- `DropdownMenu` v2: change default placement to match the legacy `DropdownMenu` component ([#51133](https://github.com/WordPress/gutenberg/pull/51133)).
- `DropdownMenu` v2: Render in the default `Popover.Slot` ([#51046](https://github.com/WordPress/gutenberg/pull/51046)).

## 25.0.0 (2023-05-24)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/dropdown-menu-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The distance in pixels from the trigger.
The preferred alignment against the trigger. May change when collisions occur.

- Required: no
- Default: `"center"`
- Default: `"start"`

##### `alignOffset`: `number`

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/dropdown-menu-v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type DropdownMenuProps = {
* The preferred alignment against the trigger.
* May change when collisions occur.
*
* @default 'center'
* @default 'start'
*/
align?: DropdownMenuPrimitive.DropdownMenuContentProps[ 'align' ];
/**
Expand Down

0 comments on commit 7afeea4

Please sign in to comment.