Update links in JavaScript

This commit is contained in:
Tom Byers
2019-12-09 19:09:24 +00:00
parent 7ec191bbac
commit c094f31b2b

View File

@@ -114,7 +114,7 @@
this.makeButton = (text, opts) => { this.makeButton = (text, opts) => {
let $btn = $('<a href=""></a>') let $btn = $('<a href=""></a>')
.html(text) .html(text)
.addClass('js-cancel') .addClass('govuk-link govuk-link--no-visited-state js-cancel')
// isn't set if cancelSelector is undefined // isn't set if cancelSelector is undefined
.data('target', opts.cancelSelector || undefined) .data('target', opts.cancelSelector || undefined)
.attr('tabindex', '0') .attr('tabindex', '0')