Describe the bug
Box inputs don't allow customization of the label next to the checkbox (and keeping it independently from the label above the boxes.
To Reproduce
Steps to reproduce the behavior:
FormulateInput component with checkbox typelabel-class elementdecorator-class element as suggested in documentationlabel-class is used for both labelsReproduction
See codepen
A few more interesting details:
div as the input for checkbox, there is actually a label with the correct class except it's empty.
label-class to the component, only the top label class is overwrittendecorator-class to the component, no class seems to be overwrittenExpected behavior
I聽would expect decorator class to be used somewhere.
Device information:
Howdy 馃憢
This should be better documented, but for box inputs that use options, the rendered product is actually a type of group input with box sub-inputs. To target the decorator classes using an box input with options you need to set the decorator-class on the option itself, or (more simply) with a class function globally. This allows for a bit more flexibility since you can style the nth box input.
Here's an example of your codesandbox with decorator classes:
Personally, to style checked inputs I use the decorator label with input:checked + label but if youre using tailwind, you'll have better success just registering a global class styling function, you can actually see an example of this here:
Good luck 馃憤
Thanks for the examples!
Most helpful comment
Howdy 馃憢
This should be better documented, but for
boxinputs that use options, the rendered product is actually a type ofgroupinput withboxsub-inputs. To target the decorator classes using anboxinput withoptionsyou need to set thedecorator-classon the option itself, or (more simply) with a class function globally. This allows for a bit more flexibility since you can style thenthbox input.Here's an example of your codesandbox with decorator classes:
https://codesandbox.io/s/tailwind-vue-formulate-2-password-reset-styled-forked-t5eue?file=/src/components/Demo-02.vue
Personally, to style checked inputs I use the decorator label with
input:checked + labelbut if youre using tailwind, you'll have better success just registering a global class styling function, you can actually see an example of this here:https://codesandbox.io/s/tailwind-vue-formulate-3-form-generation-egn58?from-embed=&file=/src/main.js:1150-1158
Good luck 馃憤