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 label alignment problem #2854

Closed
mthongkerd opened this issue Nov 1, 2022 · 3 comments
Closed

Checkbox label alignment problem #2854

mthongkerd opened this issue Nov 1, 2022 · 3 comments

Comments

@mthongkerd
Copy link

What package has an issue

@mantine/core

Describe the bug

When using component (not string) as the input for Checkbox label the component appears on the bottom right of the checkbox.

What version of @mantine/hooks page do you have in package.json?

5.6.3

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/s/mantine-checkbox-label-alignment-problem-jlho96?file=/src/App.js

Do you know how to fix the issue

No response

Are you willing to participate in fixing this issue and create a pull request with the fix

No response

Possible fix

No response

@mthongkerd mthongkerd changed the title Checkbox label alignment problem Checkbox label alignment problem Nov 1, 2022
@julihereu
Copy link

julihereu commented Nov 2, 2022

The same issue appears when using the Switch component label or Radio component label with elements instead of a string.

https://codesandbox.io/s/switch-label-alignment-xspcyk?file=/src/App.js

@adarshaacharya
Copy link
Contributor

@rtivital I've raised pr fixing this issue, please check it !

#2881

@rtivital
Copy link
Member

rtivital commented Nov 12, 2022

Fixed in 5.7.2 – https://codesandbox.io/s/mantine-checkbox-label-alignment-problem-forked-w43xo7

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

4 participants