Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox/CheckboxField is not designed with error message support in mind #1653

Open
QzCurious opened this issue Dec 26, 2024 · 0 comments
Open

Comments

@QzCurious
Copy link

What component (if applicable)

Describe the bug
Checkbox is part of a form and might have error. CheckboxField could play the role of Field to provide error context. But a ErrorMessage is not layout-ed properly.

To Reproduce

<Fieldset className='col-span-full'>
  <Legend>Legend</Legend>
  <CheckboxField className='mt-2'>
    <Checkbox />
    <Label>This is a label that goes with the checkbox</Label>
    <ErrorMessage>Error message</ErrorMessage>
  </CheckboxField>
</Fieldset>

Expected behavior
ErrorMessage to a Checkbox should be layout-ed like Description to Checkbox

Screenshots

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant