Skip to content

Upgrade to Bootstrap 5.3 and jQuery 3.8 - #915

Open
W0rma wants to merge 3 commits into
Codeception:masterfrom
W0rma:bootstrap-5
Open

W0rma wants to merge 3 commits into
Codeception:masterfrom
W0rma:bootstrap-5

Conversation

@W0rma

@W0rma W0rma commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bootstrap 3 has been end-of-life since 2019, and jQuery 1.9.1 has known XSS vulnerabilities. Bootstrap 5.3 also has built-in dark mode, which is the groundwork for #569.

Changes

  • Libraries: Bootstrap 5.3.9, Bootstrap Icons 1.13.2 and jQuery 3.8.0, loaded from CDNs with integrity hashes. jQuery stays on 3.x because the table-of-contents plugin uses :eq(), which jQuery 4 removed.
  • Components: the navbar, dropdowns, carousels and phar download panels are rewritten for Bootstrap 5. Panels are now cards, and glyphicons are now Bootstrap Icons.
  • Grid: column classes are shifted up one breakpoint (sm→md, md→lg, lg→xl) so layouts change at the same widths as before.
  • Same look: a new _scss/_base.scss keeps Bootstrap 3's typography, gutters, container widths and well styling.
  • Renames: the add-ons page .card is now .addon-card, to avoid clashing with Bootstrap's .card. .btn-default is kept as a site-specific button style, so RoboFile.php and the generated module docs don't need changes.

Visible differences

  • Alerts, green buttons and active list items use Bootstrap 5's colour palette.
  • The OpenCollective support banner is now hidden below 992px. The existing d-none d-lg-block classes only take effect in Bootstrap 5.
  • The carousel "next" arrows are dark instead of white on white.
  • The navbar dropdown for Symfony/Laravel/Yii/Phalcon is removed. It had no toggle link, so it could never be opened.

Follow-up steps

  1. Move the hardcoded colours in the custom SCSS to CSS variables. This shouldn't change how anything looks.
  2. Add dark mode (Dark mode please #569): Bootstrap's data-bs-theme, a dark palette for the custom styles, a dark syntax-highlighting theme, and a navbar toggle for light, dark or follow the system setting.
  3. Optionally, remove jQuery entirely by rewriting js/scripts.js (about 280 lines) in plain JavaScript.

🤖 Generated with Claude Code

Bootstrap 3 and jQuery 1.9 are end-of-life and jQuery 1.9 has known
XSS vulnerabilities. Bootstrap 5.3 also ships a built-in dark mode,
which is a prerequisite for Codeception#569.

- Load Bootstrap 5.3.9, Bootstrap Icons 1.13.2 and jQuery 3.8.0 with SRI
- Rewrite the navbar, dropdowns, carousels and phar accordion for BS5
- Shift grid classes one breakpoint up (sm->md, md->lg, lg->xl) so
  layouts switch at the same widths as before
- Replace panels/wells with cards, glyphicons with Bootstrap Icons
- Rename the add-ons page .card to .addon-card to avoid clashing with
  Bootstrap's .card
- Add _base.scss to keep Bootstrap 3 typography, gutters and container
  widths, so the site looks the same
- Keep .btn-default as a site-specific button style so generated module
  docs need no changes
Bootstrap 5 cards are flex containers, which stretched the install page
requirements box and wrapped the QuickStart button below its text.
@W0rma
W0rma requested review from Arhell and TavoNiievez November 23, 2026 16:57
@W0rma W0rma changed the title ## Upgrade to Bootstrap 5.3 and jQuery 3.8 Upgrade to Bootstrap 5.3 and jQuery 3.8 Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant