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:
Tammo ter Hark 2026-11-29 16:05:39 +01:00
commit 52bd169335

View file

@ -475,11 +475,28 @@
<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>
@ -490,7 +507,6 @@
<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 =
@ -514,28 +530,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,