]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed wrong case in code sample. 9931/head
authorstrainger <strainger@users.noreply.github.com>
Wed, 5 Apr 2017 15:49:02 +0000 (10:49 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 15:49:02 +0000 (10:49 -0500)
There were two instances where the wrong case was used in the "Off-canvas Position" section of the documentation. Instead of "Split" the example had "SPlit" which would still work, but is unclean. It is also an official Off-canvas example, so it could be spreading through test code for people learning Foundation and lead to confusion. I simply made the "P" lowercase on lines 140 and 146. I quoted the code below.

Before Fix line 140:
<button type="button" class="button" data-toggle="offCanvasLeftSPlit1">Open Left</button>

Before Fix 146:
<div class="off-canvas-absolute position-left" id="offCanvasLeftSPlit1" data-off-canvas>

docs/pages/off-canvas.md

index 553c5780e7dda6cf05998f10f2bca3be11b35b5f..9d3e789d0888f33c542c64fcf3873ad9d5699de1 100644 (file)
@@ -137,13 +137,13 @@ Here's a complete example that can be pasted into the `<body>` tag of your page.
 Foundation's Off-canvas is set to `position: fixed` by default using the `.off-canvas` class. This makes the off-canvas panel sit in relation to the viewport, and is the desired behavior for most users. However you can also set an off-canvas container to `position: absolute` by using the alternative class `.off-canvas-absolute`. Also be sure to use the `.off-canvas-wrapper` when using this method.
 
 ```html_example
-<button type="button" class="button" data-toggle="offCanvasLeftSPlit1">Open Left</button>
+<button type="button" class="button" data-toggle="offCanvasLeftSplit1">Open Left</button>
 <button type="button" class="button" data-toggle="offCanvasRightSplit2">Open Right</button>
 
 <div class="row">
   <div class="small-6 columns">
     <div class="off-canvas-wrapper">
-      <div class="off-canvas-absolute position-left" id="offCanvasLeftSPlit1" data-off-canvas>
+      <div class="off-canvas-absolute position-left" id="offCanvasLeftSplit1" data-off-canvas>
         <!-- Your menu or Off-canvas content goes here -->
       </div>
       <div class="off-canvas-content" style="min-height: 300px;" data-off-canvas-content>