Skip to content

Commit

Permalink
Add a maybe button to the feedback component
Browse files Browse the repository at this point in the history
We have a problem where bots are filling in the feedback
component and skewing the results. The theory here is that they
are clicking on the first link, so we're introducing a new
hidden first link called 'Maybe'.
  • Loading branch information
thomasleese committed Nov 2, 2018
1 parent 959fd7b commit 0a5cd50
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
useful summary for people upgrading their application, not a replication
of the commit log.

* Add a hidden 'Maybe' option to the feedback component. (PR #608)

## 12.4.0

* Updates current breadcrumbs components to be based on GOV.UK Frontend (PR #593)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
<div class="gem-c-feedback__js-prompt-questions js-prompt-questions">
<h2 class="gem-c-feedback__prompt-question">Is this page useful?</h2>

<%= link_to contact_govuk_path, {
class: 'gem-c-feedback__prompt-link',
data: {
'track-category' => 'yesNoFeedbackForm',
'track-action' => 'ffMaybeClick'
},
style: 'display: none;',
hidden: 'hidden',
'aria-hidden': 'true',
'aria-expanded': false,
} do %>
Maybe
<% end %>

<%= link_to contact_govuk_path, {
class: 'gem-c-feedback__prompt-link gem-c-feedback__prompt-link--useful js-page-is-useful',
data: {
Expand Down

0 comments on commit 0a5cd50

Please sign in to comment.