Skip to content

Commit

Permalink
Include the Shim links with button role script from the frontend toolkit
Browse files Browse the repository at this point in the history
Links styled to look like buttons lack button behaviour. This script will allow them to be triggered with a space key after they’ve been focused, to match standard buttons.

By default, this behaviour will only be applied to links with a role of button.
  • Loading branch information
gemmaleigh committed Aug 19, 2016
1 parent 83ca0bb commit e2ac841
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- govuk_frontend_toolkit js -->
<script src="/public/javascripts/vendor/polyfills/bind.js"></script>
<script src="/public/javascripts/govuk/selection-buttons.js"></script>
<script src="/public/javascripts/govuk/shim-links-with-button-role.js"></script>

<!-- govuk_elements js -->
<script src="/public/javascripts/vendor/details.polyfill.js"></script>
Expand Down

0 comments on commit e2ac841

Please sign in to comment.