Active theme override is not considered

Created on 23 August 2023, over 1 year ago
Updated 25 August 2023, over 1 year ago

Problem/Motivation

When there are multiple layout options providers, override for the current active theme doesn't work because the discovery files are sorted alphabetically.
If a theme name starts with "A" and the parent theme starts with "U" like UI Suite Bootstrap , layout options apply from the later one.

Steps to reproduce

1. Create a theme with name "a_theme" and make its base theme "UI Suite Bootstrap"
2. Create "a_theme.layout_options.yml" and override any of the option like "with_container", set "title" to something else.
3. Open Layout Builder to see the override.
4. Override is not applied.

Proposed resolution

Reorder layout options after discovery to put the active theme to the end to have the top priority.

Remaining tasks

No

User interface changes

No

API changes

No

Data model changes

No

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia lexbritvin

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

Comments & Activities

Production build 0.71.5 2024