From d3f1264a53ffb2701fccccc8f044c3bf634279b5 Mon Sep 17 00:00:00 2001 From: Brett Mason Date: Mon, 28 Nov 2016 20:08:01 +0000 Subject: [PATCH] Remove position option from the JavaScript as its no longer needed or used. --- js/foundation.offcanvas.js | 7 ------- test/visual/offcanvas/all-options.html | 22 +++++++++++----------- test/visual/offcanvas/reveal.html | 2 +- test/visual/offcanvas/sticky.html | 22 +++++++++++----------- 4 files changed, 23 insertions(+), 30 deletions(-) diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 08347c6b5..c71f2218f 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -344,13 +344,6 @@ OffCanvas.defaults = { */ transition: 'push', - /** - * Direction the offcanvas opens from. Determines class applied to body. - * @option - * @example left - */ - position: 'left', - /** * Force the page to scroll to top or bottom on open. * @option diff --git a/test/visual/offcanvas/all-options.html b/test/visual/offcanvas/all-options.html index 5d9fac714..f4820103f 100644 --- a/test/visual/offcanvas/all-options.html +++ b/test/visual/offcanvas/all-options.html @@ -19,77 +19,77 @@

This is a left off-canvas panel

-
+

This is a right off-canvas panel

-
+

This is a top off-canvas panel

-
+

This is a bottom off-canvas panel

-
+

This is a left off-canvas panel with 'overlap' transition

-
+

This is a right off-canvas panel with 'overlap' transition

-
+

This is a top off-canvas panel with 'overlap' transition

-
+

This is a bottom off-canvas panel with 'overlap' transition

-
+

This is a top off-canvas panel with force-to set to top

-
+

This is a bottom off-canvas panel with force-to set to bottom

-
+

This is a left off-canvas panel with no content overlay. You can still click the content to close me.

-
+
diff --git a/test/visual/offcanvas/reveal.html b/test/visual/offcanvas/reveal.html index 36e056eb3..7cddb777f 100644 --- a/test/visual/offcanvas/reveal.html +++ b/test/visual/offcanvas/reveal.html @@ -19,7 +19,7 @@

This is a left off-canvas panel. It should reveal on large and up screens.

-
+
diff --git a/test/visual/offcanvas/sticky.html b/test/visual/offcanvas/sticky.html index 56f00cd40..6fb78ee59 100644 --- a/test/visual/offcanvas/sticky.html +++ b/test/visual/offcanvas/sticky.html @@ -18,77 +18,77 @@

This is a left off-canvas panel

-
+

This is a right off-canvas panel

-
+

This is a top off-canvas panel

-
+

This is a bottom off-canvas panel

-
+

This is a left off-canvas panel with 'overlap' transition

-
+

This is a right off-canvas panel with 'overlap' transition

-
+

This is a top off-canvas panel with 'overlap' transition

-
+

This is a bottom off-canvas panel with 'overlap' transition

-
+

This is a top off-canvas panel with force-to set to top

-
+

This is a bottom off-canvas panel with force-to set to bottom

-
+

This is a left off-canvas panel with no content overlay. You can still click the content to close me.

-
+
-- 2.47.3