Sub-theme Bootstrap CDN library using different versions

Created on 12 October 2021, about 3 years ago
Updated 27 April 2023, over 1 year ago

Problem/Motivation

The sub-theme Bootstrap CDN library is using version 5.1.3 compared to the parent Bootstrap CDN library using 5.0.2. This will load both sets of libraries by default causing conflicts.

Proposed resolution

Sync the versions or provide verbiage/solution to resolve the conflict. Should the child theme be using the more recent version? Should the child theme override the parent theme libraries? Maybe there needs to be more documentation around the creation and use of a child theme.

πŸ› Bug report
Status

Closed: outdated

Version

5.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States esch

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tomarnold2

    Thank you. Setting the subtheme.libraries.yml described in #3 and disabling the bootstrap_library module fixed the dropdown issue for me. It also fixed the issue where the components/node "hide node label" checkbox had stopped working. This all worked when using the base theme but had issues when I moved to the subtheme but all good now.

  • πŸ‡ΊπŸ‡ΈUnited States potassiumchloride

    Update!

    If you update Bootstrap Barrio module to the most recent version, then drop-down menus in the subtheme may not work again. Check the bootstrap_barrio.libraries.yml file to find out which version of CDN the module is using, then copy that version to the subtheme.libraries.yml file as described in #3. With the newest Bootstrap Barrio version as of now, the version is 5.2.0, not 5.0.2, as it was previously.

Production build 0.71.5 2024