• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coreui / coreui-pro / 33624564328
93%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v6-dev
DEFAULT BRANCH: main
Ran 02 Sep 2026 11:27AM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Sep 2026 11:25AM UTC coverage: 93.226% (-0.02%) from 93.25%
33624564328

push

github

web-flow
feat(ScrollSpy)!: activate sections on a configurable activation line and keep the last link highlighted in gaps (#1054)

* docs(scrollspy): describe the activation line, list topMargin and add the simple anchors example

The page now says how a section becomes active: the activation line set by
topMargin, the last link kept through gaps, the first link above the first
section and the last link at the bottom. The options table lists topMargin,
describes rootMargin as the raw observer override that wins when set and
shows threshold's new default. Examples move under one Examples heading in
the upstream order (navbar, nested nav, list group, simple anchors); the
navbar example drives a Menu instead of the deprecated Dropdown and the
simple anchors example, missing since the docs migration, is added. The
migration guide gets the user-visible changes of the new engine.

* feat(ScrollSpy)!: activate sections on a configurable activation line and keep the last link highlighted in gaps

The active link is now the lowest section whose top edge has crossed an
activation line drawn topMargin below the top of the scroll container
(12% by default, % or px). The result depends only on the scroll position:
the previous engine compared each section's offset with the last scroll
position and could highlight a different link for the same offset
depending on the scroll direction.

Two user-visible fixes follow. When a gap between sections crosses the
line, the last active link stays highlighted instead of the navigation
going blank. When the container is scrolled to the bottom, a sentinel
observer activates the last section even if it is too short for its top
to reach the line.

rootMargin defaults to null and is passed to the observer unchanged when
set, taking precedence over topMargin, so existing configurations keep
working. threshold defaults to [0]. A pixel topMargin rebuilds the
observer on resize (debounced). smoothScroll now settles the navigation:
once the sc... (continued)

4830 of 5430 branches covered (88.95%)

Branch coverage included in aggregate %.

179 of 186 new or added lines in 1 file covered. (96.24%)

9263 of 9687 relevant lines covered (95.62%)

399.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
92.82
-1.69% js/src/scrollspy.ts
Jobs
ID Job ID Ran Files Coverage
1 33624564328.1 02 Sep 2026 11:27AM UTC 68
93.23
GitHub Action Run
Source Files on build 33624564328
  • Tree
  • List 68
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33624564328
  • 9d04b35d on github
  • Prev Build on v6-dev (#33622615406)
  • Next Build on v6-dev (#33666801369)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc