grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

Add conditional for label that ends up blank for checkboxes

Open hdwebpros opened this issue 4 years ago • 2 comments

Without this conditional, checkboxes render a blank label

<div class="form-label"><label class="inline"></label></div>

Having the blank label screws with accessibility.

Sure, you can manually set each checkbox to display_label: false but that in itself is confusing since removes the broken label and keeps the checkbox label. Since the default checkbox no matter what creates a blank div and label, the best way around this is to just add this conditional

hdwebpros avatar Sep 16 '21 20:09 hdwebpros

Related: https://github.com/getgrav/grav-plugin-form/pull/442

NicoHood avatar Sep 22 '21 08:09 NicoHood

Related: #442

And #450

hughbris avatar Oct 21 '21 03:10 hughbris