aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-27 10:56:46 -0700
committerMark Otto <[email protected]>2012-08-27 10:56:46 -0700
commit1c9d5c43b06dc81de1320227244246a17d3a79f3 (patch)
tree86205eeddd550ebc2543108f9e5d2e9fbe00b4b8 /docs/components.html
parenta2b9a5e1fecbcad93c0f1b08bf7f470c2aaaabdd (diff)
downloadbootstrap-1c9d5c43b06dc81de1320227244246a17d3a79f3.tar.xz
bootstrap-1c9d5c43b06dc81de1320227244246a17d3a79f3.zip
fixes #4640: pagination span issues resolved by scoping selectors to appropriate children, not all children; clarify docs on use of spans for disabled and active links
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/components.html b/docs/components.html
index 4eccbbc9e..f47aecbf1 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -1473,7 +1473,7 @@
</div>
</div>
<pre class="prettyprint linenums">
-&lt;div class="pagination "&gt;
+&lt;div class="pagination"&gt;
&lt;ul&gt;
&lt;li class="disabled"&gt;&lt;a href="#"&gt;Prev&lt;/a&gt;&lt;/li&gt;
&lt;li class="active"&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
@@ -1481,6 +1481,16 @@
&lt;/ul&gt;
&lt;/div&gt;
</pre>
+ <p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p>
+<pre class="prettyprint linenums">
+&lt;div class="pagination"&gt;
+ &lt;ul&gt;
+ &lt;li class="disabled"&gt;&lt;span&gt;Prev&lt;/span&gt;&lt;/li&gt;
+ &lt;li class="active"&gt;&lt;span&gt;1&lt;/span&gt;&lt;/li&gt;
+ ...
+ &lt;/ul&gt;
+&lt;/div&gt;
+</pre>
<h3>Alignment</h3>
<p>Add one of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>