<label for="inputid">label</label>
<input type="text" id="inputid" name="input" value="" placeholder="" aria-describedby="inputtip" aria-invalid="true" />
<div id="inputtip">
<span class="error-msg">Your input is invalid because...</span>
</div>
{{~ render '@input' input ~}}
<div id="{{ tip.id }}">
<span class="error-msg">{{ msg }}</span>
</div>
{
"msg": "Your input is invalid because...",
"tip": {
"id": "inputtip"
},
"input": {
"name": "input",
"type": "text",
"id": "inputid",
"ariaDescribedby": "inputtip",
"ariaInvalid": true,
"label": {
"for": "inputid",
"text": "label"
}
}
}
.error-msg {
display: block;
padding: .5em;
color: $color-error;
font-family: $font-stack-form-ui;
}
When presenting an input error message