Skip to content

Commit

Permalink
Popover: Fix width on expandOnMobile (#42635)
Browse files Browse the repository at this point in the history
* Popover: Fix width on `expandOnMobile`

* Add changelog
  • Loading branch information
mirka authored Jul 22, 2022
1 parent 5de7f23 commit 04802c3
Show file tree
Hide file tree
Showing 3 changed files with 4 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 @@ -4,6 +4,7 @@

### Bug Fix

- `Popover`, `Dropdown`: Fix width when `expandOnMobile` is enabled ([#42635](https://github.com/WordPress/gutenberg/pull/42635/)).
- `CustomSelectControl`: Fix font size and hover/focus style inconsistencies with `SelectControl` ([#42460](https://github.com/WordPress/gutenberg/pull/42460/)).
- `AnglePickerControl`: Fix gap between elements in RTL mode ([#42534](https://github.com/WordPress/gutenberg/pull/42534)).
- `RangeControl`: clamp initialPosition between min and max values ([#42571](https://github.com/WordPress/gutenberg/pull/42571)).
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/popover/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const _default = () => {
const show = boolean( 'Example: Show', true );
const children = text( 'children', 'Popover Content' );
const animate = boolean( 'animate', false );
const expandOnMobile = boolean( 'expandOnMobile', false );
const focusOnMount = select(
'focusOnMount',
{
Expand All @@ -41,6 +42,7 @@ export const _default = () => {
const props = {
animate,
children,
expandOnMobile,
focusOnMount,
noArrow,
isAlternate,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/popover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
position: static;
height: calc(100% - #{ $panel-header-height });
overflow-y: visible;
min-width: auto;
width: auto;
border: none;
outline: none;
border-top: $border-width solid $gray-900;
Expand Down

0 comments on commit 04802c3

Please sign in to comment.