Skip to content

Commit

Permalink
Merge pull request #136 from adamliversidge/APB-4550
Browse files Browse the repository at this point in the history
APB-4550[AL] Add error prefix
  • Loading branch information
ejayaraman authored Jan 9, 2020
2 parents f078e34 + 90bc6ea commit 8ff5477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
}
role="tooltip"
data-journey="search-page:error:@elements.field.name">
@if(elements.args.contains('_errorPrefix) ){<span class="visually-hidden">@elements.args.get('_errorPrefix) </span>}
@Messages(error)
</span>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@elements.args.get('_legend)
</legend>
}
@elements.errors.map{error => <span class="error-notification">@Messages(error)</span>}
@elements.errors.map{error => <span class="error-notification">@if(elements.args.contains('_errorPrefix) ){<span class="visually-hidden">@elements.args.get('_errorPrefix) </span>}@Messages(error)</span>}

@radioOptions.map { case (value, label) =>
@defining(s"${elements.field.name}-${value.toLowerCase.replace(" ","_")}") { inputId =>
Expand Down

0 comments on commit 8ff5477

Please sign in to comment.