Skip to content

Commit

Permalink
Panel: Add 40px size prop to Button (#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 <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people authored Oct 30, 2024
1 parent 355dfd5 commit d4c153a
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

1 comment on commit d4c153a

@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 d4c153a.
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/11595417112
📝 Reported issues:

Please sign in to comment.