Skip to content

Commit

Permalink
Fix Menu description story
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Jul 11, 2024
1 parent 2b1afa5 commit 3c04ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
10 changes: 2 additions & 8 deletions packages/core/stories/menu/menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const IconWithGroups: StoryFn<typeof Menu> = (args) => {

export const ContextMenu: StoryFn = () => {
const [virtualElement, setVirtualElement] = useState<VirtualElement | null>(
null,
null
);
const [open, setOpen] = useState(false);
return (
Expand Down Expand Up @@ -367,13 +367,7 @@ export const Descriptions: StoryFn<typeof Menu> = (args) => {
<MenuPanel>
{Object.values(features).map(({ name, description, id }) => (
<MenuItem id={id} key={id}>
<StackLayout
gap={0.5}
style={{
paddingBlock:
"calc(var(--salt-spacing-100) + var(--salt-spacing-25))",
}}
>
<StackLayout gap={0.5}>
<Text>{name}</Text>
<Text styleAs="label" color="secondary">
{description}
Expand Down
8 changes: 1 addition & 7 deletions site/src/examples/menu/Descriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ export const Descriptions = (): ReactElement => {
<MenuPanel>
{Object.values(features).map(({ name, description, id }) => (
<MenuItem id={id} key={id}>
<StackLayout
gap={0.5}
style={{
paddingBlock:
"calc(var(--salt-spacing-100) + var(--salt-spacing-25))",
}}
>
<StackLayout gap={0.5}>
<Text>{name}</Text>
<Text styleAs="label" color="secondary">
{description}
Expand Down

0 comments on commit 3c04ee5

Please sign in to comment.