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 (#51133)

* Update docs

* CHANGELOG
  • Loading branch information
ciampo authored May 31, 2023
1 parent 6d3714e commit 172366a
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

1 comment on commit 172366a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 172366a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5134903471
📝 Reported issues:

Please sign in to comment.