feat(options): Questions tab 'Question help' section; help background becomes a 6-way color chooser (row 178 plan P4)
New section (h3 + first col-md-4 of a 3-column grid, only it used): questionhelpbackgroundcolor as 6-way chooser (default 'other' + custom #fff3cd, look unchanged) + questionhelpbackgroundcolorcustom, the plain help font color picker (stays plain per row-178 decision 8) and the help text position; keys moved between the answers block and the border options, legacy col 1 is empty now. questionhelpbackgroundcolor joined aColorChooserKeys (twig + js, OPTIONS_JS_TOKEN 20261129.3) and the build.php chooser migration; custom_header.twig resolves it via cm() (legacy hex passes through). Variants rebuilt, example config synced. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
82ce4284ad
commit
ff998489b9
6 changed files with 61 additions and 22 deletions
27
config.xml
27
config.xml
|
|
@ -473,6 +473,23 @@
|
||||||
<option value="other">Other ...</option>
|
<option value="other">Other ...</option>
|
||||||
</dropdownoptions></answerstextcolor>
|
</dropdownoptions></answerstextcolor>
|
||||||
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
||||||
|
<!-- Row 178 plan P4 (row 186): section "Question help" (options.twig) — a
|
||||||
|
three-column grid (col-md-4, width 4) of which only the first column is
|
||||||
|
used: help background color CHOOSER (6-way + custom, default "other" with
|
||||||
|
custom #fff3cd so the look stays as before), the help font color (stays a
|
||||||
|
plain picker per row-178 decision 8) and the help text position. -->
|
||||||
|
<questionhelpbackgroundcolor type="dropdown" category="Questions" width="4" title="Question help background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||||
|
<dropdownoptions>
|
||||||
|
<option value="default">Default font color</option>
|
||||||
|
<option value="defaultbackgroundcolor">Default background color</option>
|
||||||
|
<option value="color1">Color 1</option>
|
||||||
|
<option value="color2">Color 2</option>
|
||||||
|
<option value="color3">Color 3</option>
|
||||||
|
<option value="other" data-default="1">[Other ...]</option>
|
||||||
|
</dropdownoptions></questionhelpbackgroundcolor>
|
||||||
|
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||||
|
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||||
|
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||||
<!-- Questions
|
<!-- Questions
|
||||||
HOUSE-STYLE: the colorpicker options in this section (question
|
HOUSE-STYLE: the colorpicker options in this section (question
|
||||||
title/background/help/help-font/border/checkbox colors) are house-style
|
title/background/help/help-font/border/checkbox colors) are house-style
|
||||||
|
|
@ -487,8 +504,11 @@
|
||||||
background chooser, col3 body background chooser; then (P3/row 184) the
|
background chooser, col3 body background chooser; then (P3/row 184) the
|
||||||
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
||||||
three-column grid, only it used): answers font + 6-way color chooser +
|
three-column grid, only it used): answers font + 6-way color chooser +
|
||||||
custom; then the remaining legacy columns (help, border,
|
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||||
checkbox color), then the rest full-width (width 12). Inside a pane
|
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||||
|
custom, plain help font color picker, help text position; then the
|
||||||
|
remaining legacy columns (border, checkbox color), then the rest
|
||||||
|
full-width (width 12). Inside a pane
|
||||||
column each option stacks as col-12. The border children
|
column each option stacks as col-12. The border children
|
||||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
carry parent="questionborder"; the show-values "box|top" cannot be an
|
||||||
XML attribute (core passes only `parent` through), so the multi-value
|
XML attribute (core passes only `parent` through), so the multi-value
|
||||||
|
|
@ -496,9 +516,6 @@
|
||||||
data-show-if-value="box|top". questionhelpfontcolor is applied
|
data-show-if-value="box|top". questionhelpfontcolor is applied
|
||||||
in custom_header.twig on .question-help-container. -->
|
in custom_header.twig on .question-help-container. -->
|
||||||
<!-- Questions -->
|
<!-- Questions -->
|
||||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="4" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
|
||||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
|
||||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
|
||||||
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||||
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||||
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,10 @@ var ThemeOptions = function () {
|
||||||
// row 157: the group title/description text colors joined the scheme;
|
// row 157: the group title/description text colors joined the scheme;
|
||||||
// row 180 / plan P2: the Questions "title" section keys as well
|
// row 180 / plan P2: the Questions "title" section keys as well
|
||||||
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||||
// row 184 / plan P3: answerstextcolor as well.
|
// row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||||
|
// questionhelpbackgroundcolor as well.
|
||||||
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
// Must stay in sync with aColorChooserKeys in options/options.twig.
|
||||||
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'];
|
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'];
|
||||||
// the 5 presets, in the SAME order as the dropdown options in config.xml
|
// the 5 presets, in the SAME order as the dropdown options in config.xml
|
||||||
// (object key order = swatch chip order) — row 125: "Default background color"
|
// (object key order = swatch chip order) — row 125: "Default background color"
|
||||||
// is the SECOND choice, right after "Default font color".
|
// is the SECOND choice, right after "Default font color".
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
||||||
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
||||||
options/options.js changes, so every browser fetches the new file once. #}
|
options/options.js changes, so every browser fetches the new file once. #}
|
||||||
{% set OPTIONS_JS_TOKEN = '20261129.2' %}
|
{% set OPTIONS_JS_TOKEN = '20261129.3' %}
|
||||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||||
|
|
||||||
|
|
@ -290,9 +290,10 @@
|
||||||
|
|
||||||
{# row 180 / plan P2: the Questions "title" section keys joined the chooser scheme
|
{# row 180 / plan P2: the Questions "title" section keys joined the chooser scheme
|
||||||
(questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
(questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
|
||||||
row 184 / plan P3: answerstextcolor as well. Must stay in sync with
|
row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||||
|
questionhelpbackgroundcolor as well. Must stay in sync with
|
||||||
aColorChooserKeys in options/options.js. #}
|
aColorChooserKeys in options/options.js. #}
|
||||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'] %}
|
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'] %}
|
||||||
|
|
||||||
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
||||||
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
||||||
|
|
@ -313,7 +314,9 @@
|
||||||
{% set aFontsCol2 = ['defaultbackgroundcolor'] %}
|
{% set aFontsCol2 = ['defaultbackgroundcolor'] %}
|
||||||
{% set aFontsCol3 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
{% set aFontsCol3 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
||||||
|
|
||||||
{% set aQuestionsCol1 = ['questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionhelptextposition'] %}
|
{# row 186 / plan P4: the help keys moved into their own "Question help" section
|
||||||
|
(aQSlots above) — legacy column 1 is empty now #}
|
||||||
|
{% set aQuestionsCol1 = [] %}
|
||||||
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
||||||
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
||||||
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
{# row 178/179 plan: the Questions pane is built from SECTIONS — each section is an
|
||||||
|
|
@ -328,7 +331,8 @@
|
||||||
{% set aQSections = [
|
{% set aQSections = [
|
||||||
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
|
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
|
||||||
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
|
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
|
||||||
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' }
|
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' },
|
||||||
|
{ 'id': 'help', 'h3': 'Question help', 'colClass': 'col-md-4' }
|
||||||
] %}
|
] %}
|
||||||
{% set aQSlots = {
|
{% set aQSlots = {
|
||||||
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
|
||||||
|
|
@ -336,7 +340,9 @@
|
||||||
'questiontitlefontsize': 'title:0', 'questiontitlefontoptions': 'title:0', 'questiontitlefontcolor': 'title:0',
|
'questiontitlefontsize': 'title:0', 'questiontitlefontoptions': 'title:0', 'questiontitlefontcolor': 'title:0',
|
||||||
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
|
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
|
||||||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0'
|
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||||
|
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
|
||||||
|
'questionhelpfontcolor': 'help:0', 'questionhelptextposition': 'help:0'
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{# row 147: all group-related options of the "Questions" category — they are
|
{# row 147: all group-related options of the "Questions" category — they are
|
||||||
|
|
|
||||||
|
|
@ -273,13 +273,14 @@ foreach ($logoPositions as $pos) {
|
||||||
// progressbarfontcolor, bodybackgroundcolor, grouptitletextcolor,
|
// progressbarfontcolor, bodybackgroundcolor, grouptitletextcolor,
|
||||||
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
|
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
|
||||||
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
|
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
|
||||||
// answerstextcolor) became mode dropdowns
|
// answerstextcolor; row 186 plan P4 adds questionhelpbackgroundcolor) became mode
|
||||||
|
// dropdowns
|
||||||
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
|
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
|
||||||
// colorpicker child. A legacy HEX value in the json means "custom color": map it
|
// colorpicker child. A legacy HEX value in the json means "custom color": map it
|
||||||
// to mode "other" and move the hex into the <key>custom child, so the variant
|
// to mode "other" and move the hex into the <key>custom child, so the variant
|
||||||
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
|
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
|
||||||
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
|
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
|
||||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'];
|
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor'];
|
||||||
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
|
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
|
||||||
foreach ($colorChooserKeys as $ck) {
|
foreach ($colorChooserKeys as $ck) {
|
||||||
if (isset($definition['options'][$ck])
|
if (isset($definition['options'][$ck])
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<version>3.3.0</version>
|
<version>3.3.0</version>
|
||||||
<apiVersion>3</apiVersion>
|
<apiVersion>3</apiVersion>
|
||||||
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
||||||
<lastUpdate>2026-11-29 14:06:42</lastUpdate>
|
<lastUpdate>2026-11-29 14:13:44</lastUpdate>
|
||||||
<extends>vanilla_respondage</extends>
|
<extends>vanilla_respondage</extends>
|
||||||
</metadata>
|
</metadata>
|
||||||
<compatibility>
|
<compatibility>
|
||||||
|
|
@ -353,6 +353,16 @@
|
||||||
<answerstextcolor type="dropdown" category="Questions" width="4" title="Text color for answers and subquestions" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
<answerstextcolor type="dropdown" category="Questions" width="4" title="Text color for answers and subquestions" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
||||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></answerstextcolor>
|
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></answerstextcolor>
|
||||||
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
||||||
|
<!-- Row 178 plan P4 (row 186): section "Question help" (options.twig) — a
|
||||||
|
three-column grid (col-md-4, width 4) of which only the first column is
|
||||||
|
used: help background color CHOOSER (6-way + custom, default "other" with
|
||||||
|
custom #fff3cd so the look stays as before), the help font color (stays a
|
||||||
|
plain picker per row-178 decision 8) and the help text position. -->
|
||||||
|
<questionhelpbackgroundcolor type="dropdown" category="Questions" width="4" title="Question help background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other
|
||||||
|
<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other" data-default="1">[Other ...]</option></dropdownoptions></questionhelpbackgroundcolor>
|
||||||
|
<questionhelpbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question help background color (for 'Other ...')" parent="questionhelpbackgroundcolor">#fff3cd</questionhelpbackgroundcolorcustom>
|
||||||
|
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||||
|
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||||
<!-- Questions
|
<!-- Questions
|
||||||
HOUSE-STYLE: the colorpicker options in this section (question
|
HOUSE-STYLE: the colorpicker options in this section (question
|
||||||
title/background/help/help-font/border/checkbox colors) are house-style
|
title/background/help/help-font/border/checkbox colors) are house-style
|
||||||
|
|
@ -367,8 +377,11 @@
|
||||||
background chooser, col3 body background chooser; then (P3/row 184) the
|
background chooser, col3 body background chooser; then (P3/row 184) the
|
||||||
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
"Answer options and subquestions" section (width 4, first col-md-4 of a
|
||||||
three-column grid, only it used): answers font + 6-way color chooser +
|
three-column grid, only it used): answers font + 6-way color chooser +
|
||||||
custom; then the remaining legacy columns (help, border,
|
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||||
checkbox color), then the rest full-width (width 12). Inside a pane
|
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||||
|
custom, plain help font color picker, help text position; then the
|
||||||
|
remaining legacy columns (border, checkbox color), then the rest
|
||||||
|
full-width (width 12). Inside a pane
|
||||||
column each option stacks as col-12. The border children
|
column each option stacks as col-12. The border children
|
||||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
carry parent="questionborder"; the show-values "box|top" cannot be an
|
||||||
XML attribute (core passes only `parent` through), so the multi-value
|
XML attribute (core passes only `parent` through), so the multi-value
|
||||||
|
|
@ -376,9 +389,6 @@
|
||||||
data-show-if-value="box|top". questionhelpfontcolor is applied
|
data-show-if-value="box|top". questionhelpfontcolor is applied
|
||||||
in custom_header.twig on .question-help-container. -->
|
in custom_header.twig on .question-help-container. -->
|
||||||
<!-- Questions -->
|
<!-- Questions -->
|
||||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="4" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
|
||||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
|
||||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
|
||||||
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||||
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||||
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||||
|
|
|
||||||
|
|
@ -294,8 +294,12 @@
|
||||||
background: {{ cmm.cm(aSurveyInfo.options.questionbackgroundcolor|default('defaultbackgroundcolor'), aSurveyInfo.options.questionbackgroundcolorcustom|default(''), aSurveyInfo.options) }};
|
background: {{ cmm.cm(aSurveyInfo.options.questionbackgroundcolor|default('defaultbackgroundcolor'), aSurveyInfo.options.questionbackgroundcolorcustom|default(''), aSurveyInfo.options) }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{# Row 186 / plan P4: the question help background is a color chooser now
|
||||||
|
(questionhelpbackgroundcolor, default mode "other" + custom #fff3cd so the
|
||||||
|
look stays as before; a legacy stored hex passes through cm()). The help
|
||||||
|
font color stays the plain picker questionhelpfontcolor (row-178 decision 8). #}
|
||||||
.question-help-container, .question-valid-container {
|
.question-help-container, .question-valid-container {
|
||||||
background: {{ aSurveyInfo.options.questionhelpbackgroundcolor }};
|
background: {{ cmm.cm(aSurveyInfo.options.questionhelpbackgroundcolor|default('other'), aSurveyInfo.options.questionhelpbackgroundcolorcustom|default(''), aSurveyInfo.options) }};
|
||||||
color: {{ aSurveyInfo.options.questionhelpfontcolor|default('') }};
|
color: {{ aSurveyInfo.options.questionhelpfontcolor|default('') }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue