My background color is not applied to the page

Created on 12 June 2024, 16 days ago

Problem/Motivation

Taking inspiration from the example.style_options.yml file, here is my theme.style_options.yml file

options:
 bg_color:
 plugin: background_color
 label: Background Color
 method: inline
 settings:
 allowEmpty: TRUE
 showInput: TRUE
 showAlpha: FALSE
 showPalette: FALSE
 appendTo: ".ui-dialog-content"

contexts:
plugins.
 layout:
 _defaults:
 options:
 bg_color:
 layout: true
 regions:false
 # Defines specific overrides for one column layouts
 paragraph_container:
 options:
 bg_color:
 layout: true
behaviors.
 paragraphs:
 section:
 options:
 bg_color: true

In CKeditor everything works perfectly but on the page the background color does not apply!

I noticed when using the css method the styles are applied in the head tag but not the class in the template. I deduce that something must be entered at the template level and perhaps in my theme.layouts.yml file

Do I need to add something in my theme.layouts.yml file or in my template

paragraph_container:
 label: "Container with background option"
 category: "Extruflex"
 template: templates/_paragraphs-layout/paragraph-container
 default_region: content
 icon_map:
 - [content]
 regions:
 thrilled:
 label: Container with background option

Thanks for your help

πŸ’¬ Support request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡«πŸ‡·France pitav

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

Comments & Activities

Production build 0.69.0 2024