diff --git a/app/assets/javascripts/fileUpload.js b/app/assets/javascripts/fileUpload.js index fe20c1a79..d12e554ed 100644 --- a/app/assets/javascripts/fileUpload.js +++ b/app/assets/javascripts/fileUpload.js @@ -6,7 +6,7 @@ this.submit = () => this.$form.trigger('submit'); this.showCancelButton = () => $('.file-upload-button', this.$form).replaceWith(` - Cancel upload + Cancel upload `); this.start = function(component) { @@ -15,7 +15,8 @@ // The label gets styled like a button and is used to hide the native file upload control. This is so that // users see a button that looks like the others on the site. - this.$form.find('label.file-upload-button').addClass('govuk-button govuk-!-margin-right-1'); +// + this.$form.find('label.file-upload-button').addClass('usa-button'); // Clear the form if the user navigates back to the page $(window).on("pageshow", () => this.$form[0].reset()); diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index fb7869922..dadda8596 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -17,7 +17,7 @@ showHideContent.init(); $(() => GOVUK.modules.start()); -$(() => $('.error-message, .govuk-error-message').eq(0).parent('label').next('input').trigger('focus')); +$(() => $('.error-message, .usa-error-message').eq(0).parent('label').next('input').trigger('focus')); $(() => $('.banner-dangerous').eq(0).trigger('focus')); diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index 943d136d0..dfef5a144 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -82,7 +82,7 @@ this.render(); } - this.$form.on('click', 'button.govuk-button--secondary', (event) => this.actionButtonClicked(event)); + this.$form.on('click', 'button.usa-button', (event) => this.actionButtonClicked(event)); this.$form.on('change', 'input[type=checkbox]', () => this.templateFolderCheckboxChanged()); }; @@ -149,7 +149,7 @@ this.makeButton = (text, opts) => { let $btn = $('') .html(text) - .addClass('govuk-link govuk-link--no-visited-state js-cancel') + .addClass('usa-link font-body-sm margin-left-1 js-cancel') // isn't set if cancelSelector is undefined .data('target', opts.cancelSelector || undefined) .attr('tabindex', '0') @@ -299,10 +299,10 @@ this.nothingSelectedButtons = $(`
- - +