Provide a general summary of the issue here
When an S2 ActionMenu is rendered on the right edge of the page and it has a description for at least one menu item, it initially renders at too narrow a width and expands to the left after. This results in a short animation as the menu expands in width and narrows in height. This happens even when the menu is set to align: "end".
🤔 Expected Behavior?
The menu should open to the left of the trigger at whatever width will correctly fit all the content, including menu item descriptions
😯 Current Behavior
The menu opens to the left of the trigger at a narrow width and expands to the left until all the text fits
💁 Possible Solution
I would guess that whatever calculations are being done to determine the width of the menu aren't including the description, so the menu renders initially at a width only large enough for the label text and icon.
🔦 Context
I have an ActionMenu menu that renders on the right edge of a page only when the user is significantly zoomed in or on a small screen. Because of this, the animation is highly visible to users
🖥️ Steps to Reproduce
Here is the CodeSanbox to reproduce: https://codesandbox.io/p/devbox/admiring-tamas-w6rh5g?workspaceId=ws_7FVZWaB87q5MpjbWooJK1U
Version
S2: 1.2.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS Sequoia 15.7.4
🧢 Your Company/Team
Unified Home
🕷 Tracking Issue
No response
Provide a general summary of the issue here
When an S2 ActionMenu is rendered on the right edge of the page and it has a description for at least one menu item, it initially renders at too narrow a width and expands to the left after. This results in a short animation as the menu expands in width and narrows in height. This happens even when the menu is set to
align: "end".🤔 Expected Behavior?
The menu should open to the left of the trigger at whatever width will correctly fit all the content, including menu item descriptions
😯 Current Behavior
The menu opens to the left of the trigger at a narrow width and expands to the left until all the text fits
💁 Possible Solution
I would guess that whatever calculations are being done to determine the width of the menu aren't including the description, so the menu renders initially at a width only large enough for the label text and icon.
🔦 Context
I have an ActionMenu menu that renders on the right edge of a page only when the user is significantly zoomed in or on a small screen. Because of this, the animation is highly visible to users
🖥️ Steps to Reproduce
Here is the CodeSanbox to reproduce: https://codesandbox.io/p/devbox/admiring-tamas-w6rh5g?workspaceId=ws_7FVZWaB87q5MpjbWooJK1U
Version
S2: 1.2.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS Sequoia 15.7.4
🧢 Your Company/Team
Unified Home
🕷 Tracking Issue
No response