Bug 1478175 - Implement the branding in the lower left corner of the payment-summary page. r?mattn draft
authorJared Wein <jwein@mozilla.com>
Mon, 30 Jul 2018 17:24:16 -0400
changeset 824460 2176d0bf2e006210f6f38ccc127571a3d9f793b7
parent 824372 892eff3fa7d9672187650508ca9196baeee22612
child 824480 05e340de13a975d31f658d2e6c654301e90bff8a
push id117914
push userbmo:jaws@mozilla.com
push dateMon, 30 Jul 2018 21:58:17 +0000
reviewersmattn
bugs1478175
milestone63.0a1
Bug 1478175 - Implement the branding in the lower left corner of the payment-summary page. r?mattn MozReview-Commit-ID: Dp8SdEzlrG3
browser/components/payments/res/paymentRequest.css
browser/components/payments/res/paymentRequest.xhtml
--- a/browser/components/payments/res/paymentRequest.css
+++ b/browser/components/payments/res/paymentRequest.css
@@ -169,8 +169,21 @@ payment-dialog[changes-prevented][comple
   width: 100%;
   height: 100%;
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
 }
+
+#branding {
+  background-image: url(chrome://branding/content/icon32.png);
+  background-size: 16px;
+  background-repeat: no-repeat;
+  background-position: left center;
+  padding-inline-start: 20px;
+  line-height: 20px;
+}
+
+body[dir="rtl"] #branding {
+  background-position: right center;
+}
--- a/browser/components/payments/res/paymentRequest.xhtml
+++ b/browser/components/payments/res/paymentRequest.xhtml
@@ -61,16 +61,17 @@
   <!ENTITY failErrorPage.suggestion2  "Make sure your credit card information is accurate.">
   <!ENTITY failErrorPage.suggestion3  "If no other solutions work, check with **host-name**.">
   <!ENTITY failErrorPage.doneButton.label     "OK">
   <!ENTITY timeoutErrorPage.title  "Whoops! **host-name** took too long to respond.">
   <!ENTITY timeoutErrorPage.suggestion1  "Try again later.">
   <!ENTITY timeoutErrorPage.suggestion2  "Check your network connection." >
   <!ENTITY timeoutErrorPage.suggestion3  "If no other solutions work, check with **host-name**.">
   <!ENTITY timeoutErrorPage.doneButton.label     "OK">
+  <!ENTITY webPaymentsBranding.label             "&brandShortName; Checkout">
 ]>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <title>&paymentSummaryTitle;</title>
 
   <!-- chrome: is needed for global.dtd -->
   <meta http-equiv="Content-Security-Policy" content="default-src 'self' chrome:"/>
 
@@ -128,16 +129,17 @@
           <address-picker class="payer-related"
                           label="&payerLabel;"
                           data-add-link-label="&payer.addLink.label;"
                           data-edit-link-label="&payer.editLink.label;"
                           selected-state-key="selectedPayerAddress"></address-picker>
         </div>
 
         <footer>
+          <span id="branding">&webPaymentsBranding.label;</span>
           <button id="cancel">&cancelPaymentButton.label;</button>
           <button id="pay"
                   class="primary"
                   data-label="&approvePaymentButton.label;"
                   data-processing-label="&processingPaymentButton.label;"
                   data-unknown-label="&unknownPaymentButton.label;"
                   data-success-label="&successPaymentButton.label;"></button>
         </footer>