Skip to content
Open
9 changes: 9 additions & 0 deletions .changeset/update-popover-padding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@launchpad-ui/components": patch
---

feat(components): update DialogTrigger popover padding

Updates DialogTrigger popover padding from uniform 8px to differentiated vertical/horizontal padding:
- Vertical padding: 8px → 12px (var(--lp-size-12))
- Horizontal padding: 8px → 16px (var(--lp-size-16))
2 changes: 1 addition & 1 deletion packages/components/src/styles/Popover.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
&[data-trigger='ComboBoxDialog'],
&[data-trigger='DatePicker'],
&[data-trigger='DateRangePicker'] {
padding: var(--lp-spacing-300);
padding: var(--lp-size-12) var(--lp-size-16);
}

&:has(input[type='search']):is(
Expand Down
12 changes: 6 additions & 6 deletions packages/components/stories/Autocomplete.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { expect, userEvent, within } from 'storybook/test';

import { Autocomplete } from '../src/Autocomplete';
import { Button } from '../src/Button';
import { Dialog, DialogTrigger } from '../src/Dialog';
import { Dialog } from '../src/Dialog';
import { Group } from '../src/Group';
import { IconButton } from '../src/IconButton';
import { Input } from '../src/Input';
import { ListBox, ListBoxItem } from '../src/ListBox';
import { Menu, MenuItem } from '../src/Menu';
import { Menu, MenuItem, MenuTrigger } from '../src/Menu';
import { Popover } from '../src/Popover';
import { SearchField } from '../src/SearchField';

Expand Down Expand Up @@ -45,7 +45,7 @@ export const Example: Story = {
];

return (
<DialogTrigger>
<MenuTrigger>
<Button>Trigger</Button>
<Popover placement="bottom start">
<Dialog aria-label="dialog with autocomplete">
Expand Down Expand Up @@ -73,7 +73,7 @@ export const Example: Story = {
</Autocomplete>
</Dialog>
</Popover>
</DialogTrigger>
</MenuTrigger>
);
},
...open,
Expand All @@ -89,7 +89,7 @@ export const ListBoxExample: Story = {
];

return (
<DialogTrigger>
<MenuTrigger>
<Button>Trigger</Button>
<Popover placement="bottom start">
<Dialog aria-label="dialog with autocomplete">
Expand Down Expand Up @@ -118,7 +118,7 @@ export const ListBoxExample: Story = {
</Autocomplete>
</Dialog>
</Popover>
</DialogTrigger>
</MenuTrigger>
);
},
...open,
Expand Down
Loading