Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToolsPanel: Allow additional props on ToolsPanel #36428

Merged
merged 2 commits into from
Nov 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Experimental

- Reinstated the ability to pass additional props to the `ToolsPanel` ([36428](https://github.com/WordPress/gutenberg/pull/36428)).

## 19.0.1 (2021-11-07)

### Experimental
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ const ToolsPanel = (
panelContext,
resetAllItems,
toggleItem,
className,
...toolsPanelProps
} = useToolsPanel( props );

// Props are not directly passed through to avoid exposing Grid props
// until agreement has been reached on how ToolsPanel layout should be
// handled.
return (
<Grid columns={ 2 } className={ className } ref={ forwardedRef }>
<Grid { ...toolsPanelProps } columns={ 2 } ref={ forwardedRef }>
<ToolsPanelContext.Provider value={ panelContext }>
<ToolsPanelHeader
label={ label }
Expand Down