From: aint here Date: Mon, 26 May 2014 23:12:32 +0000 (-0700) Subject: doc pages offcanvas toggle anchor requires href X-Git-Tag: v5.3.1~38^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F5227%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git doc pages offcanvas toggle anchor requires href Updated offcanvas examples to include href attribute on toggle anchors. The offcanvas toggle anchors require an href attribute to work properly on iphones as discussed here http://foundation.zurb.com/forum/posts/1651-cant-get-off-canvas-to-toggle-on-mobile --- diff --git a/doc/pages/components/offcanvas.html b/doc/pages/components/offcanvas.html index 40016a264..1e55aefd4 100644 --- a/doc/pages/components/offcanvas.html +++ b/doc/pages/components/offcanvas.html @@ -63,15 +63,15 @@ This is the panel that slides in and out when activated. You can place it on eit ### Target Off-Canvas Menu -To target an off-canvas menu, add `.left-off-canvas-toggle` or `.right-off-canvas-toggle` to your layout. Clicking on these will activate their corresponding menu. +To target an off-canvas menu, add `.left-off-canvas-toggle` or `.right-off-canvas-toggle` to your layout. Clicking on these will activate their corresponding menu. These anchor elements require the `href` attribute to work on iphones.

HTML

```html -Left Menu +Left Menu -Right Menu +Right Menu @@ -132,7 +132,7 @@ The button containers, `section.left-small` and `section.right-small`, contain t To add the nice hamburger icon that everyone knows and loves, add a class of `.menu-icon` to your menu target, and nest a `span` inside of it. ```html - + ``` Now put it all together... @@ -142,10 +142,10 @@ Now put it all together... ```html ``` @@ -171,13 +171,13 @@ The last thing we need is a section for the tab bar content. Add `section.tab-ba ```html ``` @@ -206,19 +206,19 @@ Add a class of `.left`, `.right`, or `.middle` depending on which space you want