Use the GOV.UK shim-links-with-button-role.js script
Use the GOV.UK shim-links-with-button-role.js script

By default, this behaviour will only be applied to links with a role of button.
<a class="button" role="button">A button</a>

This script will allow them to be triggered with a space key after they’ve been focused, to match standard buttons.

karlparton/my-govuk,joelanman/govuk_prototype_kit,hannalaakso/accessible-timeout-warning,karlparton/my-govuk,davedark/proto-timeline,chrishanes/pvb_prisoner_proto,dwpdigitaltech/hrt-prototype,hannalaakso/accessible-timeout-warning,BucksCountyCouncil/verify-local-patterns,dwpdigitaltech/hrt-prototype,nhsbsa/ppc-prototype,Demwunz/esif-prototype,joelanman/govuk_prototype_kit,tsmorgan/marx,davedark/proto-timeline,nhsbsa/ppc-prototype,gup-dwp/pip-prototype-v2,danblundell/verify-local-patterns,samwake/hoddat-cofc-caseworking,abbott567/govuk_prototype_kit,alphagov/govuk_prototype_kit,gavinwye/govuk_prototype_kit,samwake/hoddat-cofc-caseworking,BucksCountyCouncil/verify-local-patterns,benjeffreys/hmcts-idam-proto,kenmaddison-scc/verify-local-patterns,karlparton/my-govuk,tsmorgan/marx,abbott567/govuk_prototype_kit,benjeffreys/hmcts-idam-proto,danblundell/verify-local-patterns,companieshouse/ch-accounts-prototype,paulpod/invgov,chrishanes/pvb_prisoner_proto,arminio/govuk_prototype_kit,danblundell/verify-local-patterns,kenmaddison-scc/verify-local-patterns,kenmaddison-scc/verify-local-patterns,gavinwye/govuk_prototype_kit,abbott567/govuk_prototype_kit,BucksCountyCouncil/verify-local-patterns,companieshouse/ch-accounts-prototype,paulpod/invgov,dwpdigitaltech/ejs-prototype,gup-dwp/pip-prototype-v2,samwake/hoddat-cofc-caseworking,dwpdigitaltech/ejs-prototype,dwpdigitaltech/ejs-prototype,davedark/proto-timeline,nhsbsa/ppc-prototype,joelanman/govuk_prototype_kit,DilwoarH/GDS-Prototype-DM-SavedSearch,DilwoarH/GDS-Prototype-DM-SavedSearch,paulpod/invgov,alphagov/govuk_prototype_kit,DilwoarH/GDS-Prototype-DM-SavedSearch,chrishanes/pvb_prisoner_proto,arminio/govuk_prototype_kit,alphagov/govuk_prototype_kit,Demwunz/esif-prototype,Demwunz/esif-prototype,dwpdigitaltech/hrt-prototype,hannalaakso/accessible-timeout-warning,benjeffreys/hmcts-idam-proto,gup-dwp/pip-prototype-v2,arminio/govuk_prototype_kit,tsmorgan/marx