]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Docs: Document positioning data attribute for off-canvas menu
authorDavid Reese <david@whatcould.com>
Sun, 22 May 2016 16:10:57 +0000 (12:10 -0400)
committerDavid Reese <david@whatcould.com>
Sun, 22 May 2016 16:12:26 +0000 (12:12 -0400)
This data attribute is included in examples but never explained.

docs/pages/off-canvas.md

index f15dab35f243b63d17e0e678c8a566c8823fa823..51f29a65c0b388162745dea28542e508cd026963 100644 (file)
@@ -26,7 +26,7 @@ To start, create two wrappers to house the page. These are necessary to prevent
 </body>
 ```
 
-Inside these wrapper, create an off-canvas menu with the class `.off-canvas` and the attribute `data-off-canvas`. The menu also needs a positioning class, which can be `.position-left` or `.position-right`. Lastly, make sure the off-canvas has a unique ID so it can be targeted.
+Inside these wrappers, create an off-canvas menu with the class `.off-canvas` and the attribute `data-off-canvas`. The menu also needs a positioning class, which can be `.position-left` or `.position-right`, and an attribute set for the position, `data-position="left"` or `data-position="right"`. Last, make sure the off-canvas has a unique ID so it can be targeted.
 
 Along with the menu, the main content of your page will be housed in its own container with the class `.off-canvas-content` and attribute `data-off-canvas-content`.