diff options
author | Mark Otto <markotto@twitter.com> | 2012-06-20 02:25:35 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-06-20 02:25:35 +0400 |
commit | 40298ddbf1c26e2c9b7f67a39eeb35734417cc7e (patch) | |
tree | 2994406b8ffc56dcda9832b92be4adffb41ef798 /docs | |
parent | ff92344f0d6cca2e00a73b9edf204c4231130d07 (diff) |
add note to components about nav list nesting
Diffstat (limited to 'docs')
-rw-r--r-- | docs/components.html | 16 | ||||
-rw-r--r-- | docs/templates/pages/components.mustache | 16 |
2 files changed, 14 insertions, 18 deletions
diff --git a/docs/components.html b/docs/components.html index d70218163f..825e9fdac0 100644 --- a/docs/components.html +++ b/docs/components.html @@ -833,18 +833,16 @@ </div> <pre class="prettyprint linenums"> <ul class="nav nav-list"> - <li class="nav-header"> - List header - </li> - <li class="active"> - <a href="#">Home</a> - </li> - <li> - <a href="#">Library</a> - </li> + <li class="nav-header">List header</li> + <li class="active"><a href="#">Home</a></li> + <li><a href="#">Library</a></li> ... </ul> </pre> + <p> + <span class="label label-info">Note</span> + For nesting within a nav list, include <code>class="nav nav-list"</code> on any nested <code><ul></code>. + </p> <h3>Horizontal dividers</h3> <p>Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:</p> diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index f84a686ca0..1e6d6fe415 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -756,18 +756,16 @@ </div>{{! /example }} <pre class="prettyprint linenums"> <ul class="nav nav-list"> - <li class="nav-header"> - {{_i}}List header{{/i}} - </li> - <li class="active"> - <a href="#">{{_i}}Home{{/i}}</a> - </li> - <li> - <a href="#">{{_i}}Library{{/i}}</a> - </li> + <li class="nav-header">{{_i}}List header{{/i}}</li> + <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li> + <li><a href="#">{{_i}}Library{{/i}}</a></li> ... </ul> </pre> + <p> + <span class="label label-info">{{_i}}Note{{/i}}</span> + {{_i}}For nesting within a nav list, include <code>class="nav nav-list"</code> on any nested <code><ul></code>.{{/i}} + </p> <h3>{{_i}}Horizontal dividers{{/i}}</h3> <p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p> |