Skip to content

Commit

Permalink
ActionItem.Slot: Render as MenuGroup by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Dec 13, 2024
1 parent 24d5f78 commit fb8a708
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/interface/src/components/action-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Property used to change the event bubbling behavior, passed to the `Slot` compon

### as

The component used as the container of the fills. Defaults to the `ButtonGroup` component.
The component used as the container of the fills. Defaults to the `MenuGroup` component.

- Type: `Component`
- Required: no
- Default: `ButtonGroup`
- Default: `MenuGroup`

## ActionItem

Expand Down
4 changes: 2 additions & 2 deletions packages/interface/src/components/action-item/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* WordPress dependencies
*/
import { ButtonGroup, Button, Slot, Fill } from '@wordpress/components';
import { MenuGroup, Button, Slot, Fill } from '@wordpress/components';
import { Children } from '@wordpress/element';

const noop = () => {};

function ActionItemSlot( {
name,
as: Component = ButtonGroup,
as: Component = MenuGroup,
fillProps = {},
bubblesVirtually,
...props
Expand Down

0 comments on commit fb8a708

Please sign in to comment.