Compare commits

..

6 Commits

  1. 3
      app/helpers/application_helper.rb
  2. 6
      app/views/layouts/application.html.erb

3
app/helpers/application_helper.rb

@ -35,7 +35,8 @@ module ApplicationHelper
def notification_banner
govuk_notification_banner(
title_text: "Success",
success: true, title_heading_level: 3,
success: true,
title_heading_level: 3,
title_id: "flash-notice",
role: "alert",
) do |notification_banner|

6
app/views/layouts/application.html.erb

@ -120,15 +120,11 @@
<main class="govuk-main-wrapper govuk-main-wrapper--auto-spacing" id="main-content" role="main">
<% if flash.notice && !flash.notice.include?("translation missing") %>
<% if flash[:notification_banner_two_thirds] %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">
<div class="<%= flash[:notification_banner_two_thirds] ? "govuk-grid-column-two-thirds-from-desktop" : "govuk-grid-column-full" %>">
<%= notification_banner %>
</div>
</div>
<% else %>
<%= notification_banner %>
<% end %>
<% end %>
<%= content_for?(:content) ? yield(:content) : yield %>
</main>

Loading…
Cancel
Save