Sha256: eef86770ba6e1414bb8a6613711da0bbbba6efa864a0ddfd22aa71584bebd363

Contents?: true

Size: 290 Bytes

Versions: 26

Compression:

Stored size: 290 Bytes

Contents

<%
  id ||= "error-message-#{SecureRandom.hex(4)}"
  classes ||= ''
  css_classes = %w( gem-c-error-message govuk-error-message )
  css_classes << classes if classes
%>

<%= tag.span id: id, class: css_classes do %>
  <span class="govuk-visually-hidden">Error:</span> <%= text %>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
govuk_publishing_components-16.28.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.27.1 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.27.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.26.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.25.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.24.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.23.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.22.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.21.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.20.1 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.20.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.19.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.18.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.17.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.16.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.15.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.14.1 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.14.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.13.0 app/views/govuk_publishing_components/components/_error_message.html.erb
govuk_publishing_components-16.12.0 app/views/govuk_publishing_components/components/_error_message.html.erb