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

Panel: Add 40px size prop to Button #66589

Merged
merged 3 commits into from
Oct 30, 2024
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
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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
Loading