Bug 1352331 - Swap the cancel and save buttons on edit profile dialog for Windows. r=lchang draft
authorScott Wu <scottcwwu@gmail.com>
Tue, 18 Apr 2017 17:42:03 +0800
changeset 564894 da677f87b1629c6d5b449396fe4e2f276df88f6c
parent 563802 a374c35469935a874fefe64d3e07003fc5bc8884
child 624862 49278901a66064867b69df379f5536aa307be086
push id54727
push userbmo:scwwu@mozilla.com
push dateWed, 19 Apr 2017 05:47:57 +0000
reviewerslchang
bugs1352331
milestone55.0a1
Bug 1352331 - Swap the cancel and save buttons on edit profile dialog for Windows. r=lchang MozReview-Commit-ID: I3kvKClOIIO
browser/extensions/formautofill/content/editProfile.css
browser/extensions/formautofill/content/editProfile.xhtml
browser/extensions/formautofill/skin/linux/editProfile.css
browser/extensions/formautofill/skin/osx/editProfile.css
browser/extensions/formautofill/skin/shared/editProfile.css
browser/extensions/formautofill/skin/windows/editProfile.css
--- a/browser/extensions/formautofill/content/editProfile.xhtml
+++ b/browser/extensions/formautofill/content/editProfile.xhtml
@@ -5,17 +5,18 @@
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <title>Profile Autofill - Edit Profile</title>
   <!-- common.css and dialog.css need to be included until this file can be
      - loaded as a stacked subdialog. -->
   <link rel="stylesheet" href="chrome://global/skin/in-content/common.css" />
   <link rel="stylesheet" href="chrome://browser/skin/preferences/in-content/dialog.css" />
-  <link rel="stylesheet" href="chrome://formautofill/content/editProfile.css" />
+  <link rel="stylesheet" href="chrome://formautofill-shared/skin/editProfile.css" />
+  <link rel="stylesheet" href="chrome://formautofill/skin/editProfile.css" />
   <script src="chrome://formautofill/content/editProfile.js"></script>
 </head>
 <body>
   <form>
     <label id="first-name-container">
       <span>First Name</span>
       <input id="first-name" type="text"/>
     </label>
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/linux/editProfile.css
@@ -0,0 +1,5 @@
+/* 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/. */
+
+/* Linux specific rules */
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/osx/editProfile.css
@@ -0,0 +1,5 @@
+/* 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/. */
+
+/* OSX specific rules */
rename from browser/extensions/formautofill/content/editProfile.css
rename to browser/extensions/formautofill/skin/shared/editProfile.css
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/skin/windows/editProfile.css
@@ -0,0 +1,12 @@
+/* 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/. */
+
+/* The save button should be on the left and cancel on the right for Windows */
+#save {
+  order: 0;
+}
+
+#cancel {
+  order: 1;
+}