palantir/blueprint
在 GitHub 查看Vertical Misalignment when NumericInput is wrapped in a Label (visual bug)
Open
#6,030 建立於 2023年3月17日
P2Package: coreType: bughelp wanted
描述
Environment
- Package version(s): 4.17.6
- Operating System: MacOS Ventura
- Browser name and version: Chrome version 111.0.5563.64
Code Sandbox
Link to a minimal repro: Sandbox
Steps to reproduce
- Visual bug (appearance)
Actual behavior
Placing NumericInput inside Label causes vertical misalignment of the text input as there is an additional 5px top margin on the text input.
Expected behavior
The text inputs and button inputs should be vertically aligned.
Possible solution
Add CSS property to default the margin-top to 0 on the text input for NumericInput so that even if it is wrapped in a Label there aren't additional margins.