chakra-ui / ark

A headless library for building reusable, scalable design systems that works for a wide range of JS frameworks.

Home Page:https://ark-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Menu] crossAxis offset ignored

nicompte opened this issue · comments

Description

The crossAxis property in Menu positioning seems to be ignored. Updating mainAxis has an effect though.
I might have misunderstood its usage, but I'd expect the floating element x coordinates to be updated.

I work with the solid package, but reproduced with react for the reproduction example.

Link to Reproduction (or Detailed Explanation)

https://codesandbox.io/p/devbox/heuristic-fire-p5gt6k?file=%2Fsrc%2FApp.tsx

Steps to Reproduce

  1. Update the crossAxis property
  2. Open the menu
  3. Has no impact

Ark UI Version

2.2.0

Framework

  • React
  • Solid
  • Vue

Browser

Firefox 124

Additional Information

No response

@nicompte
Thanks for taking your time to report this issue and sorry for the late reply. We've focused on the new version of Ark UI in the last weeks.

Unfortunately I'm unable to start your reproduction example. If you can pick any from the Stackblitz provided at the getting started page that would be great.

image