Skip to content

Commit

Permalink
Merge pull request #2306 from alphagov/success_alert_margins
Browse files Browse the repository at this point in the history
Amend success message spacing
  • Loading branch information
danacotoran authored Dec 3, 2021
2 parents 2bd472f + 5b14873 commit c16a181
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/views/shared/_email_subscribe_unsubscribe_flash.html.erb
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<% if @account_flash.include?("email-subscription-success") %>
<div class="govuk-grid-row govuk-!-margin-top-7">
<div class="govuk-grid-row govuk-!-margin-top-3">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/success_alert", {
message: sanitize(t("email.subscribe_title")),
description: sanitize(t("email.description_html"))
description: sanitize(t("email.description_html")),
margin_bottom: 0,
} %>
</div>
</div>

<% elsif @account_flash.include?("email-unsubscribe-success") %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds govuk-!-margin-top-7">
<div class="govuk-grid-column-two-thirds govuk-!-margin-top-3">
<%= render "govuk_publishing_components/components/success_alert", {
message: sanitize(t("email.unsubscribe_title")),
description: sanitize(t("email.description_html"))
description: sanitize(t("email.description_html")),
margin_bottom: 0,
} %>
</div>
</div>
Expand Down

0 comments on commit c16a181

Please sign in to comment.