diff --git a/app/assets/sass/application.scss b/app/assets/sass/application.scss index 2a3328460..319da2a58 100644 --- a/app/assets/sass/application.scss +++ b/app/assets/sass/application.scss @@ -4,7 +4,6 @@ @import "modules/3ds"; @import "modules/accepted-cards"; @import "modules/accessible-autocomplete"; -@import "modules/button-reset"; @import "modules/cvc"; @import "modules/expiry-date-separator"; @import "modules/input-confirm"; diff --git a/app/assets/sass/modules/_button-reset.scss b/app/assets/sass/modules/_button-reset.scss deleted file mode 100644 index d7eba6966..000000000 --- a/app/assets/sass/modules/_button-reset.scss +++ /dev/null @@ -1,26 +0,0 @@ -.button-reset { - @include govuk-font($size: 19); - display: inline; - margin: govuk-spacing(2) 0 0 2px; - padding: 0; - border: 0; - outline: 0; - outline-offset: 0; - color: $govuk-link-colour; - background: 0 0; - text-decoration: underline; - font-size: 19px; - cursor: pointer; - - &:hover { - color: $govuk-link-hover-colour; - } - - &:focus { - @include govuk-focused-text; - } -} - -.pay-button--custom { - padding: govuk-spacing(1) govuk-spacing(3) 1px; -} diff --git a/app/views/charge.njk b/app/views/charge.njk index 83a774bf9..2b72de0fd 100644 --- a/app/views/charge.njk +++ b/app/views/charge.njk @@ -628,7 +628,14 @@
diff --git a/app/views/confirm.njk b/app/views/confirm.njk index b66bcb1b4..3497e40c0 100644 --- a/app/views/confirm.njk +++ b/app/views/confirm.njk @@ -134,7 +134,14 @@ diff --git a/test/charge-ui.test.js b/test/charge-ui.test.js index 0734e9a79..a35b3ae8d 100644 --- a/test/charge-ui.test.js +++ b/test/charge-ui.test.js @@ -179,6 +179,6 @@ describe('The confirm view', function () { it('should have a \'Cancel\' button.', function () { const body = renderTemplate('charge', {}) - body.should.containInputWithIdAndName('cancel-payment', 'cancel', 'submit') + body.should.containButtonWithIdAndName('cancel-payment', 'cancel', 'submit') }) }) diff --git a/test/test-helpers/html-assertions.js b/test/test-helpers/html-assertions.js index 23bc5c623..c8f63548c 100644 --- a/test/test-helpers/html-assertions.js +++ b/test/test-helpers/html-assertions.js @@ -93,6 +93,11 @@ chai.use(function (_chai, utils) { utils.flag(this, 'inputFieldId', id) }) + chai.Assertion.addMethod('containButtonWithIdAndName', function (id, name, type) { + this.containSelector('button#' + id).withAttributes({ name: name, type: type }) + utils.flag(this, 'buttonId', id) + }) + chai.Assertion.addMethod('withLabel', function (labelId, labelText) { const inputFieldId = utils.flag(this, 'inputFieldId') const subAssertion = new chai.Assertion(utils.flag(this, 'rawHtml'))