- Issue created by @johanvdr
- ๐ฎ๐ณIndia Shreya_98
Shreya_th โ made their first commit to this issueโs fork.
- @shreya_th opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:41am 9 October 2023
When an option is already set in color-spectrum.jquery.js like preferredFormat: "rgb"
you cannot override that option to another value, The default rgb is kept.
Try to override preferredFormat
from rgb to hex in your theme using style_options.yml , the value is not used because it gets overridden again.
options:
bg_color:
plugin: background_color
label: Background Color
method: css
settings:
appendTo: '.ui-dialog-content'
showPalette: true
allowEmpty: true
preferredFormat: 'hex'
This prevents to solve this issue https://www.drupal.org/project/style_options/issues/3374997 โจ Extra classes for Background Color plugin Needs work to have background classes with an identifier where the hex color code is to be appended to the background class name.
Remove preferredFormat: "rgb"
in color-spectrum.jquery.js, set the option in [yourtheme].style_options.yml
Needs review
1.0
Code
Shreya_th โ made their first commit to this issueโs fork.