This repository has been archived by the owner on Feb 26, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for
->required()
on the label within a form group
By intercepting the `required($conditional)` function here we will add automatically the `control-label-required` CSS class to the `<label>` HTML element. This way you are able to use CSS to style the `<label>` HTML element however you want, you can even use pseudo-elements to add an asterisk: ```css label.control-label-required:after { content: " *"; } ``` Obviously we wont interfere with Form Builder and we'll call the `required()` function defined within `adamwathan/form` no matter what. The CSS class will just be added conditionally.
- Loading branch information