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 be9e166 commit 038cc25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<script src="/public/javascripts/details.polyfill.js"></script>
<script src="/public/javascripts/jquery-1.11.3.js"></script>
<script src="/public/javascripts/govuk/selection-buttons.js"></script>
<script src="/public/javascripts/application.js"></script>
<script src="/public/javascripts/govuk/shim-links-with-button-role.js"></script>
<script src="/public/javascripts/application.js"></script>

0 comments on commit 038cc25

Please sign in to comment.