We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e41ce89 + f61da81 commit 844e3ceCopy full SHA for 844e3ce
NHSUKViewComponents.Web/Views/Shared/Components/TextInput/Default.cshtml
@@ -2,8 +2,8 @@
2
@using NHSUKViewComponents.Web.Helpers
3
@model TextInputViewModel
4
<div class="nhsuk-form-group @(Model.HasError ? "nhsuk-form-group--error" : "")">
5
- <label class="nhsuk-label" for="@Model.Name">
6
- @Model.Label
+ <label class="nhsuk-label @(string.IsNullOrWhiteSpace(Model.Label) ? "nhsuk-u-visually-hidden" : "")" for="@Model.Name">
+ @(string.IsNullOrWhiteSpace(Model.Label) ? "N/A" : @Model.Label)
7
</label>
8
@if (Model.HintText != null)
9
{
0 commit comments