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

coreui / coreui-pro / 44194266220
97%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v6-dev
DEFAULT BRANCH: main
Ran 17 Nov 2026 10:58PM UTC
Jobs 1
Files 96
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

17 Nov 2026 10:52PM UTC coverage: 96.74% (+0.004%) from 96.736%
44194266220

push

github

web-flow
fix(Dialog,Drawer,Modal,Offcanvas,Sidebar): lock page scrolling from the script, through one helper (#1852)

The page scroll lock was a `:root.dialog-open` rule in `_modal.scss`. With
the per-component stylesheets, which React and Vue import by default,
Dialog, Drawer and Offcanvas never loaded it, so an open dialog left the
page scrolling behind it.

`util/scroll-lock.ts` sets `overflow-x` and `overflow-y` to `hidden` inline
on the root, adds
`dialog-open` to it, and gives the width of the scrollbar that disappears to
padding on the root and to a margin on full-width `.fixed-top`,
`.fixed-bottom` and `.is-fixed` elements, borders included in the width
test. After the last owner lets go it restores the inline values the page
had, each overflow longhand on its own. The rule and its `scrollbar-gutter: stable` leave the stylesheet;
the class stays as a hook. The mobile Sidebar locked `<body>` through
`util/scrollbar.ts`, which is removed; it now takes a share of the same
lock, so the Sidebar and a dialog opened over it hold one lock. The Sidebar
also lets go when it hides or is disposed after the viewport stopped being
mobile; before, the lock stayed on. React and Vue import the helper as
`@coreui/coreui-pro/utils/scroll-lock`.

`dispose()` now always unregisters the dialog's layer. A dialog closed
natively and disposed before its queued `close` event kept its layer, and
the next dialog to open threw.

Measured with Playwright in Chromium and Firefox on the per-component
stylesheets: the root overflow is hidden while any of the four components
is open modally and visible after it closes, in vanilla, React and Vue
(48 of 48 cells per engine). WebKit was not measured. The minified bundles
grow by 0.15 to 0.20 kB gzip. `js/dist/util/scrollbar.js` is gone, and in the
per-file UMD builds `util/scroll-lock.js` (global `ScrollLock`) has to load
before `dialog-base.js` and `sidebar.js`; the migration guide says so.

8456 of 8960 branches covered (94.38%)

Branch coverage included in aggregate %.

62 of 62 new or added lines in 3 files covered. (100.0%)

14212 of 14472 relevant lines covered (98.2%)

2328.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44194266220.1 17 Nov 2026 10:58PM UTC 96
96.74
GitHub Action Run
Source Files on build 44194266220
  • Tree
  • List 96
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44194266220
  • f1b798e1 on github
  • Prev Build on v6-dev (#44183907045)
  • Next Build on v6-dev (#44197888675)
  • 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