From 1281532be52f8dc7303bf101ddda3c90f6bdca5e Mon Sep 17 00:00:00 2001 From: Clinton Blackburn Date: Fri, 19 Jun 2015 01:19:36 -0400 Subject: [PATCH] Updated Payment Buttons The payment buttons now match the style of the verified upgrade buttons. XCOM-422 --- lms/static/js/verify_student/views/make_payment_step_view.js | 5 ++++- lms/static/sass/_developer.scss | 2 +- lms/static/sass/views/_verification.scss | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lms/static/js/verify_student/views/make_payment_step_view.js b/lms/static/js/verify_student/views/make_payment_step_view.js index 532534970b..68f92a11ce 100644 --- a/lms/static/js/verify_student/views/make_payment_step_view.js +++ b/lms/static/js/verify_student/views/make_payment_step_view.js @@ -68,6 +68,9 @@ var edx = edx || {}; templateContext.requirements, function( isVisible ) { return isVisible; } ), + // This a hack to appease /lms/static/js/spec/verify_student/pay_and_verify_view_spec.js, + // which does not load an actual template context. + processors = templateContext.processors || [], self = this; // Track a virtual pageview, for easy funnel reconstruction. @@ -100,7 +103,7 @@ var edx = edx || {}; ); // create a button for each payment processor - _.each(templateContext.processors, function(processorName) { + _.each(processors.reverse(), function(processorName) { $( 'div.payment-buttons' ).append( self._getPaymentButtonHtml(processorName) ); }); diff --git a/lms/static/sass/_developer.scss b/lms/static/sass/_developer.scss index 0964b4dcc8..7b5448dacf 100644 --- a/lms/static/sass/_developer.scss +++ b/lms/static/sass/_developer.scss @@ -69,7 +69,7 @@ @include margin-left( ($baseline/2) ); &.is-selected { - background: $m-blue-d3 !important; + background: $m-green-s1 !important; } } } diff --git a/lms/static/sass/views/_verification.scss b/lms/static/sass/views/_verification.scss index b9a00db98c..14444798e3 100644 --- a/lms/static/sass/views/_verification.scss +++ b/lms/static/sass/views/_verification.scss @@ -165,7 +165,7 @@ // elements - controls .action-primary { - @extend %btn-primary-blue; + @extend %btn-verify-primary; // needed for override due to .register a:link styling border: 0 !important; color: $white !important;