Skip to content

FormHelperText length affect control hitbox #47195

@sampain

Description

@sampain

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/material-ui/react-checkbox/#formgroup
  2. Write a long text in the FormHelperText.
  3. Hitbox is now larger than it should be.

Current behavior

Hitbox gets larger, following the FormHelperText length.

It's more noticeable whithout label where we see the hitbox is as large as the helpertext. The checkbox also get centered.
Image

Expected behavior

Checkbox hitbox should be unaffected by the FormHelperText.

Image

I tested the checkbox, but I suppose other controls are also affected.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: FormHelperText control hitbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: checkboxChanges related to the checkbox.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions