Skip to content

Commit

Permalink
Popover: Add small size prop to close button (WordPress#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 and karthick-murugan committed Nov 13, 2024
1 parent 6d3c43d commit 310d87a
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

0 comments on commit 310d87a

Please sign in to comment.