getgrav / getgrav/grav-plugin-form
Checkbox has extra padding because of invisible, duplicated label
- Dominant language
- PHP
- Stars
- 64
- Forks
- 80
- Avg merge
- 10h 13m
- Merged PRs (30d)
- 9
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the checkbox implementation and inspect how its invisible label and surrounding div are rendered. Remove the empty label wrapper responsible for the extra margin, then verify that the real label remains adjacent to the input and the checkbox form no longer has the unwanted padding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100