diff --git a/app/views/includes/scripts.html b/app/views/includes/scripts.html index ab53fece6..434f496f9 100644 --- a/app/views/includes/scripts.html +++ b/app/views/includes/scripts.html @@ -3,6 +3,7 @@ + diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 2635d20d8..f4540ac75 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -122,6 +122,10 @@ $(document).ready(function() { var $blockLabels = $(".block-label input[type='radio'], .block-label input[type='checkbox']"); new GOVUK.SelectionButtons($blockLabels); + // Use GOV.UK shim-links-with-button-role.js to trigger a link styled to look like a button, + // with role="button" when the space key is pressed. + GOVUK.shimLinksWithButtonRole.init(); + // Details/summary polyfill // See /javascripts/vendor/details.polyfill.js