From 845062cf0ea2844f44151f50a42dbe029821c0b7 Mon Sep 17 00:00:00 2001 From: Karsten Hoffmeyer Date: Thu, 16 Jul 2026 20:28:04 +0200 Subject: [PATCH 1/3] Add Bootstrap 4 to 5 section to the migration guide Document what the 6.0.0 Bootstrap 5 lift means for existing wikis: lockstep requirement bumps, the jumbotron rebuild on utility classes, emitted class renames that break custom CSS, the data-bs-* attribute rename for hand-written Bootstrap HTML in templates, component initialization moving to the native Bootstrap API, SCSS variable review, and stale Bootstrap 4 markup in the parser cache after the upgrade. Scope the existing content to a 1.x-to-4.0 section, link the guide from the 6.0.0 release notes, and supply the missing FontAwesome link definition. Co-Authored-By: Claude Fable 5 --- docs/migration-guide.md | 92 ++++++++++++++++++++++++++++++++++++++--- docs/release-notes.md | 3 ++ 2 files changed, 90 insertions(+), 5 deletions(-) diff --git a/docs/migration-guide.md b/docs/migration-guide.md index 8a84850..dd9be5f 100644 --- a/docs/migration-guide.md +++ b/docs/migration-guide.md @@ -1,5 +1,83 @@ ## Migration Guide +### BootstrapComponents 5.x to 6.0 (Bootstrap 4 to 5) + +BootstrapComponents 6.0 moves the underlying framework from Bootstrap 4 +to Bootstrap 5.3. All components keep their wikitext syntax: no parser +function or tag was removed or renamed, and existing pages keep parsing +as before. What needs attention is everything a wiki builds around the +emitted markup. + +#### New requirements + +* MediaWiki 1.43 or later +* PHP 8.1 or later +* Bootstrap extension 6.x, which bundles the Bootstrap 5.3 library + +Upgrade the Bootstrap extension together with BootstrapComponents; the +two versions belong together. + +#### Jumbotron + +Bootstrap 5 removed the `.jumbotron` component. +**BootstrapComponents takes care of that** by rebuilding the component +from [utility classes][BS5-jumbotron] (`p-5 mb-4 bg-body-tertiary +rounded-3`), so existing jumbotrons keep working. Expect slight visual +differences, and note that custom CSS targeting `.jumbotron` no longer +matches anything. + +#### Custom CSS targeting emitted markup + +Bootstrap 5 renamed classes and restructured some components, and the +markup this extension emits changed accordingly. Rules in +`MediaWiki:Common.css` (or skin CSS) written against the old output +need review. The changes most likely to matter: + +| Emitted before | Emitted now | +| -------------- | ----------- | +| `close` (alert and modal close button) | `btn-close` | +| `badge-{color}` | `text-bg-{color}` | +| `badge-pill` | `rounded-pill` | +| `jumbotron` | `p-5 mb-4 bg-body-tertiary rounded-3` | +| carousel indicators as `
    `/`
  1. ` | `