palantir/blueprint
GitHub で見るMenuItem sizing issue when using large modifier with nested items
Open
#4,893 opened on 2021年9月9日
P2Package: coreType: bughelp wanted
説明
Environment
- Package version(s): 4.0.0-alpha.0
- Operating System: Windows
- Browser name and version: Edge Version 92.0.902.78 (Official build) (64-bit)
Steps to reproduce
- Hover over a MenuItem with nested MenuItem(s)
Expected Result
- Sub-menu opens with no sizing change to parent item
Actual Result
- Parent MenuItem size changes (looks like top/bottom padding reduces), which is particularly an issue when hovering at the lower edge of the item, and doesn't look great
CodeSandbox Example
https://codesandbox.io/s/blueprint-4-menu-issue-wmb12?file=/src/index.tsx