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
We’ve seen a rare use-case where the label might need to be generated separately from the text input: where the text input is in a table cell, and the label is in a different table cell.
This is quite an advanced use which will stretch the Design System to
the limit. HTML has long-supported placing labels far from the
corresponding input, even outside the form altogether. The risk here is
that error messages now will be placed by the input, which has a strong
likelihood of breaking layouts.
Still, I'm sure some people will find a use for this.
Fixes#477
We’ve seen a rare use-case where the label might need to be generated separately from the text input: where the text input is in a table cell, and the label is in a different table cell.
I think this can be done like this:
However setting
label
tonil
isn’t documented.It may also make sense to expose
govuk_label
as a separate helper?However we’d have to be clear that this isn’t the default or easiest way of associating labels with fields.
The text was updated successfully, but these errors were encountered: