Upgrading Bootstrap5 from version 3 to 4

Created on 12 June 2024, 16 days ago

Problem/Motivation

It's great to see version 4 has been released, thanks! It still says this on the front page, which could get updated:

4.0.x Experimental branch (possible inclusions: bootstrap icons (included), bootswatch, dark mode, CSS variables)

Also, does upgrading from 3.x to 4.x require any extra steps, or it's just a matter of composer require drupal/bootstrap5:^4.0 and then drush updatedb?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡©πŸ‡°Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ressa
  • πŸ‡ΊπŸ‡ΈUnited States erutan

    If you're overridden any templates I'd check them against the base theme for changes, I added some new aria roles to page.html.twig that weren't in v3 but are in v4.

    I rebuilt a new subtheme, then copied over my SCSS and changes to .libraries.yml, .theme, and other things. There wasn't anything tricky about it, just make sure to not forget anything. You could always just try updating the base theme on localdev and see if things break or not.

Production build 0.69.0 2024