fix(options): Questions tab row-195 corrections — 3-col help section, checkbox chooser in answers col 2, radius subcolumns
- Help section now 3 col-md-4 columns: col 1 = new questionhelpfont fontselect + questionhelpfontcolor (plain picker per decision 8), col 2 = help background chooser + custom, col 3 = help text position; questionhelpfont applied in survey_question_help.twig (falls back to answersfont on base) - checkboxcolor became a standard 6-way color chooser + checkboxcolorcustom (default other + #ff005f, look unchanged) and moved to column 2 of the 'Answer options and subquestions' section; resolved via cmm.cm() in custom_header.twig (legacy hex passthrough); legacy col 3 removed - Border radii now form two subcolumns: border-start vertical divider on the right subcolumn (TR/BR), hr between the two rows kept - chooser key lists synced in options.twig/options.js/build.php (+checkboxcolor) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
aae3112981
commit
52bd169335
2 changed files with 95 additions and 56 deletions
|
|
@ -274,14 +274,14 @@ foreach ($logoPositions as $pos) {
|
|||
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
|
||||
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
|
||||
// answerstextcolor; row 186 plan P4 adds questionhelpbackgroundcolor; row 191 plan
|
||||
// P6 adds the six per-button choosers) became mode
|
||||
// P6 adds the six per-button choosers; row 195 adds checkboxcolor) became mode
|
||||
// dropdowns
|
||||
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
|
||||
// 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
|
||||
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
|
||||
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'];
|
||||
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
|
||||
foreach ($colorChooserKeys as $ck) {
|
||||
if (isset($definition['options'][$ck])
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<version>3.3.0</version>
|
||||
<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>
|
||||
<lastUpdate>2026-11-29 14:39:51</lastUpdate>
|
||||
<lastUpdate>2026-11-29 14:58:38</lastUpdate>
|
||||
<extends>vanilla_respondage</extends>
|
||||
</metadata>
|
||||
<compatibility>
|
||||
|
|
@ -355,15 +355,24 @@
|
|||
<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>
|
||||
<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. -->
|
||||
<!-- Row 195: the checkbox/radiobutton color moved here — column 2 of the
|
||||
"Answer options and subquestions" section — and became a standard 6-way
|
||||
color chooser (+ custom child), like the other color options. Default
|
||||
mode "other" + custom #ff005f, so the look stays exactly as before. -->
|
||||
<checkboxcolor type="dropdown" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" 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></checkboxcolor>
|
||||
<checkboxcolorcustom type="colorpicker" category="Questions" width="4" title="Custom checkbox/radiobutton color (for 'Other ...')" parent="checkboxcolor">#ff005f</checkboxcolorcustom>
|
||||
<!-- Row 178 plan P4 (row 186, revised row 195): section "Question help"
|
||||
(options.twig) — a three-column grid (col-md-4, width 4):
|
||||
col 1 = the font chooser for the help text + the help font color (stays a
|
||||
plain picker per row-178 decision 8), col 2 = the help background color
|
||||
CHOOSER (6-way + custom, default "other" with custom #fff3cd so the look
|
||||
stays as before), col 3 = the help text position. -->
|
||||
<questionhelpfont type="fontselect" category="Questions" width="4" title="Font for question help text">base</questionhelpfont>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<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>
|
||||
<!-- Row 178 plan P5 (row 188): section "Question border" (options.twig) —
|
||||
three col-md-4 subcolumns with a vertical divider between them (col 1 =
|
||||
|
|
@ -387,28 +396,29 @@
|
|||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
questiondropdown, questionhelptextposition and checkboxcolor (now a 6-way
|
||||
chooser, row 195).
|
||||
Row 178 plan: order = the sections of the Questions tab as rendered by
|
||||
options.twig (aQSections/aQSlots): first the "Overall question" section
|
||||
(width 4 = the first col-md-4 of a three-column grid, row 183), then the
|
||||
"Question title and body" section (three col-md-4 columns, width 4):
|
||||
col1 title font chooser/color chooser + legacy picker, col2 title
|
||||
background chooser, col3 body background chooser; then (P3/row 184) the
|
||||
"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 +
|
||||
custom; then (P4/row 186) the "Question help" section (width 4, first
|
||||
col-md-4 of a three-column grid, only it used): help background chooser +
|
||||
custom, plain help font color picker, help text position; then (P5/row
|
||||
188) the "Question border" section (three col-md-4 subcolumns with a
|
||||
background chooser, col3 body background chooser; then (P3/row 184,
|
||||
row 195) the "Answer options and subquestions" section (three col-md-4
|
||||
columns): col1 answers font + 6-way color chooser + custom, col2 the
|
||||
checkbox/radiobutton color chooser + custom; then (P4/row 186, revised
|
||||
row 195) the "Question help" section (three col-md-4 columns): col1 help
|
||||
font chooser + plain help font color picker, col2 help background
|
||||
chooser + custom, col3 help text position; then (P5/row 188, row 195)
|
||||
the "Question border" section (three col-md-4 subcolumns with a
|
||||
vertical divider between them: col 1 = the border buttons, col 2 = the
|
||||
color/style/shadow children, col 3 = the four radii as two rows of two
|
||||
with an hr between the rows); then the remaining legacy column
|
||||
(checkbox color), then the rest full-width (width 12). Inside a pane
|
||||
column each option stacks as col-12 (the radius options as col-md-6
|
||||
for the 2x2 rows). questionhelpfontcolor is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
color/style/shadow children, col 3 = the four radii as TWO subcolumns
|
||||
of two with a vertical divider between them and an hr between the two
|
||||
rows); then the rest full-width (width 12). Inside a pane column each
|
||||
option stacks as col-12 (the radius options as col-md-6 for the 2x2
|
||||
subcolumns, the right subcolumn with border-start). questionhelpfontcolor
|
||||
is applied in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Buttons tab (row 178 plan P6): own category directly after Questions,
|
||||
so the options page renders it as a tab directly after the Questions tab.
|
||||
One column per navigator button — col 1 = Previous, col 2 = Next,
|
||||
|
|
|
|||
Loading…
Reference in a new issue