Skip to content

Commit

Permalink
Merge pull request #861 from alphagov/enable-button-role-shim
Browse files Browse the repository at this point in the history
Add and init button role shim
  • Loading branch information
NickColley authored Dec 7, 2016
2 parents c6cb0f4 + 3c9bc1b commit 448e27c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/assets/javascripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
});


1 change: 1 addition & 0 deletions app/assets/javascripts/header-footer-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 448e27c

Please sign in to comment.