]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add visual tests for close button! 10237/head
authorharry <harmanmanchanda182@gmail.com>
Thu, 22 Jun 2017 20:39:31 +0000 (02:09 +0530)
committerharry <harmanmanchanda182@gmail.com>
Thu, 22 Jun 2017 20:39:31 +0000 (02:09 +0530)
test/visual/controls/close-button.html [new file with mode: 0644]

diff --git a/test/visual/controls/close-button.html b/test/visual/controls/close-button.html
new file mode 100644 (file)
index 0000000..5542afb
--- /dev/null
@@ -0,0 +1,40 @@
+<!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">
+    <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">
+          <h1>Close Button</h1>
+
+          <div class="callout" data-closable>
+            <p>You can so totally close this!</p>
+            <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
+              <span aria-hidden="true">&times;</span>
+            </button>
+          </div>
+          <div class="success callout" data-closable="slide-out-right">
+            <p>You can close me too, and I close using a Motion UI animation.</p>
+            <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
+              <span aria-hidden="true">&times;</span>
+            </button>
+          </div>
+        </div>
+      </div>
+    </div>
+      
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>