-
Notifications
You must be signed in to change notification settings - Fork 79
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 has extra padding because of invisible, duplicated label #441
Comments
NicoHood
added a commit
to NicoHood/grav-theme-quark
that referenced
this issue
Oct 23, 2020
This is definitely an issue for me too. I'm trying to write a plugin to integrate forms with Bootstrap 5 and I've pretty much had to rewrite the field layout template to hide the label if the label block is empty. It's worse with bootstrap as the label is 24px high even when empty. |
@SeriousKen You can also use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current checkbox implementation has an invisible label which causes the form to add an ugly extra margin
The "real" label is placed right next to the input field, and thatswhy the normal label is not needed. In the code the label is cleared (empty block), but the div around will still be there.
I will upload a PR shortly that should be linked by github itself.
The text was updated successfully, but these errors were encountered: