Skip to content

Commit

Permalink
Panel: Add 40px size prop to Button (WordPress#66589)
Browse files Browse the repository at this point in the history
* Panel: Add 40px size prop to Button

* Add changelog

* Update snapshot

Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored and karthick-murugan committed Nov 13, 2024
1 parent e9521b5 commit 1f6d37a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

- ESLint: Stop disabling `react-hooks/exhaustive-deps` rule ([#66324](https://github.com/WordPress/gutenberg/pull/66324)).
- `TabPanel`: Add 40px size prop to tab Button ([#66557](https://github.com/WordPress/gutenberg/pull/66557)).
- `Panel`: Add 40px size prop to Button ([#66589](https://github.com/WordPress/gutenberg/pull/66589)).

## 28.10.0 (2024-10-16)

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/panel/body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const PanelBodyTitle = forwardRef(
return (
<h2 className="components-panel__body-title">
<Button
__next40pxDefaultSize
className="components-panel__body-toggle"
aria-expanded={ isOpened }
ref={ ref }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`PluginPostPublishPanel renders fill properly 1`] = `
>
<button
aria-expanded="true"
class="components-button components-panel__body-toggle"
class="components-button components-panel__body-toggle is-next-40px-default-size"
type="button"
>
<span
Expand Down

0 comments on commit 1f6d37a

Please sign in to comment.