Bug 1372077 - [Form Autofill] Change the label "Country" to "Country or Region" in preferences. r=lchang draft
authorScott Wu <scottcwwu@gmail.com>
Tue, 25 Jul 2017 17:16:15 +0800
changeset 617261 b01cd895f1b7aa0ddafe7dcfa1b294ce9e3afc51
parent 617258 b4b2e22e7eceda925f6fd9a023c1e8548933ebd1
child 617289 5bc5f60623ef8244078eb0a1b0450f45f2d950dc
child 617318 1a4c448f4515ff97c7a243e95aa31d1d9f056364
child 617323 606411c2e64b55d98e109b6c5cd2f71646544630
push id71003
push userbmo:scwwu@mozilla.com
push dateFri, 28 Jul 2017 08:22:23 +0000
reviewerslchang
bugs1372077
milestone56.0a1
Bug 1372077 - [Form Autofill] Change the label "Country" to "Country or Region" in preferences. r=lchang Increases the width of the label and the dialog to fit "Country or Region" in one line. MozReview-Commit-ID: AXkOlz8leGt
browser/extensions/formautofill/locales/en-US/formautofill.properties
browser/extensions/formautofill/skin/shared/editAddress.css
--- a/browser/extensions/formautofill/locales/en-US/formautofill.properties
+++ b/browser/extensions/formautofill/locales/en-US/formautofill.properties
@@ -45,13 +45,13 @@ additionalName = Middle Name
 familyName = Last Name
 organization = Company
 streetAddress = Street Address
 city = City
 province = Province
 state = State
 postalCode = Postal Code
 zip = Zip Code
-country = Country
+country = Country or Region
 tel = Phone
 email = Email
 cancel = Cancel
 save = Save
--- a/browser/extensions/formautofill/skin/shared/editAddress.css
+++ b/browser/extensions/formautofill/skin/shared/editAddress.css
@@ -1,12 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+html {
+  width: 620px;
+}
+
 body {
   font-size: 1rem;
 }
 
 form,
 label,
 div {
   display: flex;
@@ -17,28 +21,28 @@ form {
 }
 
 label {
   margin: 0 0 0.5em;
 }
 
 label > span {
   box-sizing: border-box;
-  flex: 0 0 8em;
+  flex: 0 0 9.5em;
   padding-inline-end: 0.5em;
   align-self: center;
   text-align: end;
   -moz-user-select: none;
 }
 
 input,
 select {
   box-sizing: border-box;
   flex: 1 0 auto;
-  width: calc(50% - 8em);
+  width: calc(50% - 9.5em);
 }
 
 option {
   padding: 5px 10px;
 }
 
 textarea {
   resize: none;