Skip to content

Commit

Permalink
Popover: Add small size prop to close button (#66587)
Browse files Browse the repository at this point in the history
* Popover: Add small size prop to close button

* Add changelog

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 6db9782 commit 1f09e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
### Enhancements

- `PaletteEdit`: use `Item` internally instead of custom styles ([#66164](https://github.com/WordPress/gutenberg/pull/66164)).
- `Popover`: Use small size variant for close button when `expandOnMobile` prop is enabled ([#66587](https://github.com/WordPress/gutenberg/pull/66587)).

### Experimental

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ const UnforwardedPopover = (
</span>
<Button
className="components-popover__close"
size="small"
icon={ close }
onClick={ onClose }
/>
Expand Down

1 comment on commit 1f09e91

@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 1f09e91.
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/11595478585
📝 Reported issues:

Please sign in to comment.