You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually a label is generated as part of the helper for the text input, as both the label and the input get wrapped in a "form group" container, which then gets a red border on the left when there’s an error present.
However there might be some rare occasions where it's best to generate the label separately, for example if the labels and inputs are within a table.
This simply exposes GOVUKDesignSystemFormBuilder::Elements::Label via a
new `#govuk_label` method on the builder object. It is intended to be
used on occasions where the label isn't wanted immediately above the
input, such as in a table.
Fixes#480
Usually a label is generated as part of the helper for the text input, as both the label and the input get wrapped in a "form group" container, which then gets a red border on the left when there’s an error present.
However there might be some rare occasions where it's best to generate the label separately, for example if the labels and inputs are within a table.
This would allow us to support this:
The text was updated successfully, but these errors were encountered: