Sha256: 68aded14f2e5a8c47d605e31db19a9862a53ffb34888bff600a85099d2371cc3

Contents?: true

Size: 515 Bytes

Versions: 92

Compression:

Stored size: 515 Bytes

Contents

<%
  add_gem_component_stylesheet("error-alert")

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

<%= tag.div id: id, class: "gem-c-error-alert", 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

92 entries across 92 versions & 1 rubygems

Version Path
govuk_publishing_components-42.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-41.1.2 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-41.1.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-41.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-41.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-40.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-40.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.5 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.4 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.3 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.2 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.2.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-39.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-38.4.2 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-38.1.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-38.1.0 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-38.0.1 app/views/govuk_publishing_components/components/_error_alert.html.erb
govuk_publishing_components-38.0.0 app/views/govuk_publishing_components/components/_error_alert.html.erb