Skip to content

Commit

Permalink
Storybook: Remove popover-related height buffers (WordPress#63480)
Browse files Browse the repository at this point in the history
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2024
1 parent 0b26364 commit f92ffcc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
12 changes: 0 additions & 12 deletions packages/components/src/dropdown-menu-v2/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ const meta: Meta< typeof DropdownMenu > = {
source: { excludeDecorators: true },
},
},
decorators: [
// Layout wrapper
( Story ) => (
<div
style={ {
minHeight: '300px',
} }
>
<Story />
</div>
),
],
};
export default meta;

Expand Down
7 changes: 0 additions & 7 deletions packages/components/src/dropdown-menu/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ const meta: Meta< typeof DropdownMenu > = {
export default meta;

export const Default: StoryObj< typeof DropdownMenu > = {
decorators: [
( Story ) => (
<div style={ { height: 150 } }>
<Story />
</div>
),
],
args: {
label: 'Select a direction.',
icon: menu,
Expand Down
7 changes: 0 additions & 7 deletions packages/components/src/dropdown/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ const meta: Meta< typeof Dropdown > = {
export default meta;

export const Default: StoryObj< typeof Dropdown > = {
decorators: [
( Story ) => (
<div style={ { height: 150 } }>
<Story />
</div>
),
],
args: {
renderToggle: ( { isOpen, onToggle } ) => (
<Button
Expand Down

0 comments on commit f92ffcc

Please sign in to comment.