]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #14654: callout for scrollspy-nav link
authorMark Otto <markdotto@gmail.com>
Tue, 23 Sep 2014 03:27:23 +0000 (20:27 -0700)
committerMark Otto <markdotto@gmail.com>
Tue, 23 Sep 2014 03:27:23 +0000 (20:27 -0700)
docs/_includes/js/scrollspy.html

index c68ec32a4640942ebb5f9cd05e8dfd49ecce564d..68d3b853c3b67fb300697b8cae080ef19f04d9ce 100644 (file)
 
   <h2 id="scrollspy-usage">Usage</h2>
 
+  <div class="bs-callout bs-callout-warning">
+    <h4>Requires Bootstrap nav</h4>
+    <p>Scrollspy currently requires the use of a Bootstrap nav component for proper highlighting of active links.</p>
+  </div>
+
   <h3>Requires relative positioning</h3>
   <p>No matter the implementation method, scrollspy requires the use of <code>position: relative;</code> on the element you're spying on. In most cases this is the <code>&lt;body&gt;</code>.</p>