Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu alignment seems to have no impact what so ever #251

Open
lekoaf opened this issue Nov 29, 2022 · 0 comments
Open

Menu alignment seems to have no impact what so ever #251

lekoaf opened this issue Nov 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@lekoaf
Copy link
Member

lekoaf commented Nov 29, 2022

Describe the bug

Bare in mind, this could just be me who is stupid. But it seems like the <Menu /> alignment properties have no affect what so ever.

My thinking would be that changing these props would open up the menu at different points from the button.

Peek 2022-11-29 14-40

<PracticalProvider theme={generateDefaultTheme('blue')}>
<div
        style={{
          width: '800px',
          margin: 'auto',
          marginTop: '100px',
          display: 'flex',
          justifyContent: 'space-evenly',
        }}
      >
        <Menu
          horizontalAlignment="left"
          horizontalPosition="left"
          verticalAlignment="top"
          verticalPosition="top"
          items={[
            {
              label: 'Item 1',
              onClick: () => {},
            },
            {
              label: 'Item 2',
              onClick: () => {},
              danger: true,
            },
          ]}
        />
        <Menu
          horizontalAlignment="right"
          horizontalPosition="right"
          verticalAlignment="top"
          verticalPosition="top"
          items={[
            {
              label: 'Item 1',
              onClick: () => {},
            },
            {
              label: 'Item 2',
              onClick: () => {},
              danger: true,
            },
          ]}
        />
        <Menu
          horizontalAlignment="left"
          horizontalPosition="left"
          verticalAlignment="bottom"
          verticalPosition="bottom"
          items={[
            {
              label: 'Item 1',
              onClick: () => {},
            },
            {
              label: 'Item 2',
              onClick: () => {},
              danger: true,
            },
          ]}
        />
        <Menu
          horizontalAlignment="right"
          horizontalPosition="right"
          verticalAlignment="center"
          verticalPosition="center"
          items={[
            {
              label: 'Item 1',
              onClick: () => {},
            },
            {
              label: 'Item 2',
              onClick: () => {},
              danger: true,
            },
          ]}
        />
      </div>
</PracticalProvider>
@lekoaf lekoaf added the bug Something isn't working label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant