Sha256: 83021e5e2c66471bfcaed50b49e13a3f837835bddf038b0975c5c99f7539d087

Contents?: true

Size: 542 Bytes

Versions: 18

Compression:

Stored size: 542 Bytes

Contents

<%
  add_gem_component_stylesheet("error-alert")

  id ||= nil
  description ||= nil
  data_attributes ||= {}
%>

<%= tag.div id: id, class: "gem-c-error-alert govuk-!-display-none-print", data: { module: "initial-focus" }.merge(data_attributes), role: "alert", tabindex: "-1" do %>
  <% if description.present? %>
    <%= tag.h2 message, class: "gem-c-error-summary__title" %>
    <%= tag.div description, class: "gem-c-error-summary__body" %>
  <% else %>
    <%= tag.p message, class: "gem-c-error-alert__message" %>
  <% end %>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
govuk_publishing_components-44.4.2 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.4.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.4.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.3.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.2.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-44.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.5.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.4.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.4.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.3.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.2.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-42.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb