Skip to content

Commit

Permalink
Merge pull request #856 from DFE-Digital/fix-notification-banner
Browse files Browse the repository at this point in the history
Update notification banenr to use title_text instead of title
  • Loading branch information
richardpattinson authored Sep 27, 2024
2 parents 4acea8c + a4a7315 commit 48b7ae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<%= yield(:breadcrumbs) if content_for?(:breadcrumbs) %>
<main class="govuk-main-wrapper" id="main-content" role="main">
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) %>
<%= govuk_notification_banner title: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<%= govuk_notification_banner title_text: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<% end %>
<%= render(FlashMessageComponent.new(flash: flash)) %>
<%= yield :content %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/check_records_layout.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<%= yield(:breadcrumbs) if content_for?(:breadcrumbs) %>
<main class="govuk-main-wrapper" id="main-content" role="main">
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) %>
<%= govuk_notification_banner title: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<%= govuk_notification_banner title_text: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %>
<% end %>
<%= render(FlashMessageComponent.new(flash: flash)) %>

Expand Down

0 comments on commit 48b7ae6

Please sign in to comment.