palantir/blueprint

[FormGroup] Using both `inline` and `subLabel` props produce misaligned `subLabel`s

Open

#5,294 建立於 2022年5月9日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: coreType: bughelp wanted

描述

Environment

  • Package version(s): @blueprintjs/core 4.3.0

Steps to reproduce

  1. Use a FormGroup with both inline and subLabel props.
<FormGroup
    inline={true}
    label="Label"
    labelFor="text-input"
    labelInfo="(required)"
    subLabel="Label helper text with details..."
>
    <InputGroup id="text-input" placeholder="Placeholder text" />
</FormGroup>

Actual behavior

Screenshot from the docs example page:

image

Expected behavior

The subLabel appears aligned with something, so either:

  • The subLabel appears below the label/labelInfo?
  • The subLabel appears above the input?

貢獻者指南

[FormGroup] Using both `inline` and `subLabel` props produce misaligned `subLabel`s · palantir/blueprint#5294 | Good First Issue