Configuration import workflow broken - either defaults not loaded from settings or defaults not set properly

Created on 5 March 2025, 6 months ago

Problem/Motivation

Assuming we start with a valid themename.settings.yml then we should be able to
drush cim, save the settings form followed by drush cex and not see any changes.

However it seems as though there are various settings that don't stick when imported and can only be changed manually.

Steps to reproduce

Create two dxpr subthemes. install both. Make changes to one. Export config. Copy the exported config from one to the one that wasn't changed. retaining any uuids. Import that config. visit the theme settings page and save. export the config. Note differences. Attempt to locate the relevant settings on the theme settings page and manually fix. iterate the last few steps until we see no changes on export.

I found problems with the following:

56c54
< menu_border_size: '1'
---
> menu_border_size: '4'
84c82
< navbar_background_custom: '1'
---
> navbar_background_custom: ''
114c112
< menu_border_color_custom: '2'
---
> menu_border_color_custom: ''
136c134
< headings_font_face: '0Source+Sans+Pro:'
---
> headings_font_face: SF_Segoe_Roboto
138c136
< nav_font_face: '0Source+Sans+Pro:300'
---
> nav_font_face: SF_Segoe_Roboto
140c138
< sitename_font_face: '0Source+Sans+Pro:'
---
> sitename_font_face: SF_Segoe_Roboto
142c140
< blockquote_font_face: '0Source+Sans+Pro:300'
---
> blockquote_font_face: SF_Segoe_Roboto
148,150c146,148
< gutter_horizontal: '100'
< gutter_vertical: '100'
< gutter_container: '30'
---
> gutter_horizontal: '30'
> gutter_vertical: '30'
> gutter_container: '60'
180c178
< block_border_color_custom: '0'
---
> block_border_color_custom: '#eeeeee'
190c188
< title_border_color_custom: '0'
---
> title_border_color_custom: '#eeeeee'
198c196
< block_divider_spacing: '4'
---
> block_divider_spacing: '20'
212c210
< body_line_height: '3'
---
> body_line_height: '1.4'
214,223c212,221
< nav_font_size: '8'
< headings_line_height: '3'
< scale_factor: '2'
< h1_font_size: '8'
< h2_font_size: '8'
< h3_font_size: '52'
< h4_font_size: '38'
< blockquote_font_size: '29'
< blockquote_line_height: '3'
< headings_letter_spacing: '0.3'
---
> nav_font_size: '14'
> headings_line_height: '1.1'
> scale_factor: '1.25'
> h1_font_size: '39'
> h2_font_size: '31'
> h3_font_size: '25'
> h4_font_size: '20'
> blockquote_font_size: '20'
> blockquote_line_height: '1.5'
> headings_letter_spacing: '0'
227,234c225,232
< h1_mobile_font_size: '14'
< h2_mobile_font_size: '14'
< h3_mobile_font_size: '52'
< h4_mobile_font_size: '38'
< blockquote_mobile_font_size: '29'
< divider_thickness: '20'
< divider_length: '18'
< divider_position: '3'
---
> h1_mobile_font_size: '39'
> h2_mobile_font_size: '31'
> h3_mobile_font_size: '25'
> h4_mobile_font_size: '20'
> blockquote_mobile_font_size: '20'
> divider_thickness: '4'
> divider_length: '0'
> divider_position: '1'
236c234
< divider_color_custom: '1'
---
> divider_color_custom: '#eeeeee'

πŸ› Bug report
Status

Active

Version

5.2

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand luke.stewart

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

Comments & Activities

  • Issue created by @luke.stewart
  • Status changed to Closed: cannot reproduce 11 days ago
  • πŸ‡§πŸ‡¦Bosnia and Herzegovina drale01 Sarajevo

    We set up a fresh Drupal 10.2 site on DDEV with DXPR Theme 5.2.1 and created two custom sub-themes (fs_dxpr_theme and dxpr_lesplebeiens_theme). We followed the same configuration import/export workflow described in the original issue:

    • Made multiple setting changes in the first sub-theme via the theme settings UI.
    • Exported the configuration (drush cex) and copied the *.settings.yml and color.theme.*.yml files to the second sub-theme.
    • Imported the config (drush cim), saved the second sub-theme’s settings without changes, and exported the config again.

    We compared the YAML files between the two sub-themes. The only differences were in the public://color/<theme>-<hash>/... paths generated by the Color module, which is expected behavior.

    All other settings remained identical β€” no value drift occurred.

    Result: The bug could not be reproduced with Drupal 10.2 + DXPR Theme 5.2.1

Production build 0.71.5 2024