Problem/Motivation

The bulma.schema.yml file and accompanying bulma.settings.yml file use a nested data structure. But the settings added in theme-settings.php are not nested (do not use '#tree' => TRUE), and similarly the theme_get_setting() calls use a non-nested form.

Steps to reproduce:

  • Install Bulma.
  • Visit the theme settings page and submit.
  • Use the config single export form to export bulma.settings.yml. Resulting data includes the nested values provided when the theme was installed and the non-nested values from the form submission.
bulma_general:
  bulma_general_block: 1
  bulma_general_icon: 1
  bulma_general_icon_type: 1
  bulma_general_menu: main
bulma_button:
  bulma_button_colorize: 1
  bulma_button_size: '0'
  bulma_button_outlined: 0
  bulma_button_inverted: 0
bulma_elements:
  bulma_elements_labels_inline: 0
  bulma_elements_input_size: '0'
  bulma_elements_labels_rounded: 0
  bulma_elements_labels_color: '0'
  bulma_elements_labels_size: '0'
bulma_tabs:
  bulma_tabs_position: '0'
  bulma_tabs_size: '0'
  bulma_tabs_style: is-boxed
  bulma_tabs_fullwidth: 0
bulma_table:
  bulma_table_bordered: 0
  bulma_table_striped: 0
  bulma_table_narrow: 0
_core:
  default_config_hash: hzghajnyaVLwRKgFQWqSK9lSoi-hpDQZYg66xLXJ3sE
features:
  node_user_picture: true
  comment_user_picture: true
  comment_user_verification: true
  favicon: true
logo:
  use_default: true
favicon:
  use_default: true
bulma_general_block: 0
bulma_general_icon: 0
bulma_general_icon_type: 0
bulma_general_menu: none
bulma_button_colorize: 0
bulma_button_size: '0'
bulma_button_outlined: 0
bulma_button_inverted: 0
bulma_elements_labels_inline: 0
bulma_elements_input_size: '0'
bulma_elements_labels_rounded: 0
bulma_elements_labels_color: '0'
bulma_elements_labels_size: '0'
bulma_tabs_position: '0'
bulma_tabs_size: '0'
bulma_tabs_style: '0'
bulma_tabs_fullwidth: 0
bulma_table_bordered: 0
bulma_table_striped: 0
bulma_table_narrow: 0

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

nedjo created an issue. See original summary.

  • nedjo committed bf14212 on 8.x-1.x
    Issue #2903480 by nedjo: Theme settings not nested
    
nedjo’s picture

Status: Active » Fixed

  • nedjo committed e00cac9 on 8.x-1.x
    Issue #2903480 by nedjo: Followup for theme settings not nested
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.