Update Bootstrap 5 from ~5.2.0 to ~5.3.0 in Vartheme BS5

Created on 12 June 2023, about 1 year ago
Updated 10 September 2023, 10 months ago

Bootstrap 5.3.0 stable was released on May 30, 2023 by XhmikosR
https://github.com/twbs/bootstrap/releases/tag/v5.3.0

Thank you, Bootstrap 5 team!!!

Bootstrap variables dark.

Needs to be imported before compiling Bootstrap 5.3.0

Now the application with Bootstrap 5.3.0 lives as follows:

:root,
[data-bs-theme=light] {

https://github.com/twbs/bootstrap/blob/v5.3.0/dist/css/bootstrap.css#L7C...

[data-bs-theme=dark] {

https://github.com/twbs/bootstrap/blob/v5.3.0/dist/css/bootstrap.css#L12...
It will be in the final dist compiled css files.

Proposed resolution

  • Change bootstrap to ~5.3.0 in the package.json file
  • Add @import "../node_modules/bootstrap/scss/variables-dark"; // Bootstrap variables dark. in the components global defaults components/_default.scss file.
  • Add @import "../node_modules/bootstrap/scss/variables-dark"; // Bootstrap variables dark. in a new Vartheme global defaults scss/_default.scss file ( for better Vartheme Global defaults management ) .
  • Run yarn install to update the yarn.lock file.
  • Run yarn theme:init to update all needed new Bootstrap 5.3.0 JavaScript files.
  • Run yarn components:build to compile all theme components
  • Run yarn theme:build to compile all theme, layout, and base styling
  • 📌 Update Bootstrap 5 from ~5.2.0 to ~5.3.0 in Varbase Components Fixed

Have the following in the _defaults.scss Global Defaults file

// Global Defaults
// -----------------------------------------------------------------------------

@import "../node_modules/bootstrap/scss/mixins/banner";
@include bsBanner("");

@import "bootstrap-variables";                           // Override bootstrap 5 variables.
@import "vartheme-variables";                            // Vartheme variables.
@import "vartheme-mixins";                               // Vartheme mixins.
@import "../node_modules/bootstrap/scss/functions";      // Bootstrap functions.
@import "../node_modules/bootstrap/scss/variables";      // Bootstrap variables.
@import "../node_modules/bootstrap/scss/variables-dark"; // Bootstrap variables dark.
@import "../node_modules/bootstrap/scss/maps";           // Bootstrap maps.
@import "../node_modules/bootstrap/scss/mixins";         // Bootstrap mixins.
@import "../node_modules/bootstrap/scss/utilities";      // Bootstrap utilities.

Then have @import "../defaults"; // Global defaults. in needed Bootstrap 5.3.0 custom SCSS files.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ✅ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release Varbase 10.0.0-beta1 , vartheme_bs5-3.0.0-alpha5

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3366299 : Updated Bootstrap 5 from ~5.2.0 to ~5.3.0 in Vartheme BS5
📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.69.0 2024