Skip to content

Commit ccecb7c

Browse files
committed
fixes twbs#14654: callout for scrollspy-nav link
1 parent 5cba9ba commit ccecb7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/_includes/js/scrollspy.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ <h4 id="three">three</h4>
5151

5252
<h2 id="scrollspy-usage">Usage</h2>
5353

54+
<div class="bs-callout bs-callout-warning">
55+
<h4>Requires Bootstrap nav</h4>
56+
<p>Scrollspy currently requires the use of a Bootstrap nav component for proper highlighting of active links.</p>
57+
</div>
58+
5459
<h3>Requires relative positioning</h3>
5560
<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>
5661

0 commit comments

Comments
 (0)