Inherit libraries from base themes

Created on 21 October 2021, about 3 years ago
Updated 8 September 2023, about 1 year ago

Problem/Motivation

While using this module, we had the need to use subthemes and these would ideally inherit their respective base theme's libraries, rather than just their own. With the patch below, any given component will have its libraries added from both the base theme and the subtheme, assuming they are described and listed in the libraries.yml file following the same rules in the docs.

Steps to reproduce

Add a component library to a theme
Create a subtheme that describes your theme as the base theme in info.yml
Add a component library to the subtheme using the same rules as in the docs regarding naming conventions
Enable your subtheme
Clear cache
Visit the page where your component is used
Confirm both component libraries are used

Proposed resolution

Patch submitted below

Remaining tasks

Test and discuss.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal joum Porto

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.

Production build 0.71.5 2024