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

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

Build:
Build:
LAST BUILD BRANCH: v6-dev
DEFAULT BRANCH: main
Ran 20 Nov 2026 10:38AM UTC
Jobs 1
Files 98
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

20 Nov 2026 10:36AM UTC coverage: 96.873% (-0.007%) from 96.88%
44720706637

push

github

web-flow
refactor(Modal, Offcanvas): inherit from Dialog and Drawer (#1877)

modal.ts and offcanvas.ts were copies of dialog.ts and drawer.ts that only
added the runtime upgrade of v5 markup, so every behaviour fix had to be
written twice. Modal now extends Dialog and Offcanvas extends Drawer, and
each keeps what tells it apart: the v5 markup upgrade, its name, data key,
events and classes, its own Default and DefaultType (so a page that sets
Modal.Default does not change Dialog), and for Modal the v5 behaviour of a
toggle inside an open modal that targets it, which closes it.

Dialog takes its classes and events from the class name, and its data API
handler calls the class it runs on, with two hooks for Modal: the target
lookup, which upgrades v5 markup before a swap marks it, and a trigger inside
its own open dialog. Drawer registers its data API (toggle, open on load,
close when inline on resize, dismiss) from a static method keyed on the class
name, which Offcanvas calls for its own selectors.

Options, events, classes and data attributes stay the same. The per-plugin
UMD files change: modal.js needs dialog.js and offcanvas.js needs drawer.js
loaded first, and loading Modal or Offcanvas alone also starts the Dialog or
Drawer data API and jQuery plugin, as the bundles already do. The migration
guide says so.

coreui.esm.min.js loses 405 B gzipped.

8507 of 9003 branches covered (94.49%)

Branch coverage included in aggregate %.

53 of 53 new or added lines in 4 files covered. (100.0%)

14234 of 14472 relevant lines covered (98.36%)

2381.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44720706637.1 20 Nov 2026 10:38AM UTC 98
96.87
GitHub Action Run
Source Files on build 44720706637
  • Tree
  • List 98
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44720706637
  • 408fbdfb on github
  • Prev Build on v6-dev (#44573155825)
  • Next Build on v6-dev (#44723329163)
  • 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