diff --git a/app/assets/javascripts/core.js b/app/assets/javascripts/core.js index 92c3e35a3..215e48c50 100644 --- a/app/assets/javascripts/core.js +++ b/app/assets/javascripts/core.js @@ -25,11 +25,13 @@ $(document).ready(function() { var buttonsSelector = "label.selectable input[type='radio'], label.selectable input[type='checkbox']"; new GOVUK.SelectionButtons(buttonsSelector); + if (GOVUK.shimLinksWithButtonRole) { + GOVUK.shimLinksWithButtonRole.init(); + } + // HMRC webchat if (GOVUK.webchat) { GOVUK.webchat.init(); } } }); - - diff --git a/app/assets/javascripts/header-footer-only.js b/app/assets/javascripts/header-footer-only.js index bcab9bf6c..50594810f 100644 --- a/app/assets/javascripts/header-footer-only.js +++ b/app/assets/javascripts/header-footer-only.js @@ -11,3 +11,4 @@ //= require libs/govuk-component/govspeak-magna-charta.min //= require govuk-component/govspeak-convert-html-pub-charts //= require govuk-component/option-select +//= require govuk/shim-links-with-button-role