From dae8d47dda617c1ff216ea025de47f8afc14a529 Mon Sep 17 00:00:00 2001 From: Jon Kirwan <87758239+jon-kirwan@users.noreply.github.com> Date: Wed, 12 Jan 2022 08:44:36 +0000 Subject: [PATCH] Update feedback component to add "display none" to "maybe" (spam prevention) button --- CHANGELOG.md | 1 + .../components/_feedback.scss | 4 ++-- .../components/feedback/_yes_no_banner.html.erb | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f45e71cf8f..7702ed3926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ## Unreleased * Make metadata component "See all updates" link href less generic ([PR #2562](https://github.com/alphagov/govuk_publishing_components/pull/2562)) +* Update feedback component to add "display none" to "maybe" (spam prevention) button ([PR #2568](https://github.com/alphagov/govuk_publishing_components/pull/2568)) ## 28.1.0 diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss b/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss index bfcc556f97..bf477adaf8 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss @@ -141,9 +141,9 @@ } } -.gem-c-feedback__option-list-item:first-child { +.gem-c-feedback__option-list-item:last-child { @include govuk-media-query($from: mobile) { - margin-right: govuk-spacing(4); + margin-left: govuk-spacing(4); } } diff --git a/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb b/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb index c8bbf38526..55a1e1998b 100644 --- a/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +++ b/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb @@ -5,12 +5,14 @@