]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge pull request #10367 from zurb/default-button-cursor
authorKevin Ball <kmball11@gmail.com>
Fri, 7 Jul 2017 19:57:48 +0000 (12:57 -0700)
committerKevin Ball <kmball11@gmail.com>
Tue, 25 Jul 2017 00:07:56 +0000 (17:07 -0700)
Add Button cursor property and bind it into a variable

scss/_global.scss
test/visual/button/cursor.html [new file with mode: 0644]

index e161a8749e69828d8bc3f8a8fdd609fef7e90f66..18152fedd51cf8be8a71db1f1735286750394f7c 100644 (file)
@@ -109,6 +109,10 @@ $global-flexbox: true !default;
 /// @type Boolean
 $global-prototype-breakpoints: false !default;
 
+/// Button cursor's value, `auto` by default
+/// @type Keyword
+$global-button-cursor: auto !default;
+
 @if not map-has-key($foundation-palette, primary) {
   @error 'In $foundation-palette, you must have a color named "primary".';
 }
@@ -205,15 +209,13 @@ $alert-color: get-color(alert);
   // Reset <button> styles created by most browsers
   button {
     @include disable-mouse-outline;
-
     padding: 0;
-
     appearance: none;
     border: 0;
     border-radius: $global-radius;
     background: transparent;
-
     line-height: 1;
+    cursor: $global-button-cursor;
   }
 
   // Prevent text overflow on pre
diff --git a/test/visual/button/cursor.html b/test/visual/button/cursor.html
new file mode 100644 (file)
index 0000000..cc569ae
--- /dev/null
@@ -0,0 +1,29 @@
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+    <title>Foundation for Sites Testing</title>
+    <link href="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
+    <link href="../assets/css/foundation.css" rel="stylesheet" />
+  </head>
+  <body>
+    <div class="grid-container">
+      <div class="grid-x grid-padding-x">
+        <div class="cell">
+          <h2>Buttons</h2>
+          <button>Default Button</button>
+        </div>
+      </div>
+    </div>
+      
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>