Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #3912
Closed
Open
Issue created Jun 23, 2012 by Administrator@rootContributor

ScrollSpy requires <element class="nav">

Created by: unruthless

ScrollSpy relies on your navigation markup being patterned like

<[element] class="nav">
  <ul>
    <li><a href="#link">Link</a></li>
    ...
  </ul>
</[element]>
</pre>

or

<ul class="nav">
  <li><a href="#link">Link</a></li>
</ul>

But the docs do not specify that the element wrapping the <li>'s must have class="nav".

Happy to submit a pull request -- would it be better to update the docs to make this required markup clear, or better to update the plugin to accept an arbitrary class and/or ID on the list wrapper?

Assignee
Assign to
Time tracking