From 671fba4affa3d608fdc5d572b292ac4ff529de30 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Wed, 25 Nov 2026 11:35:18 +0100 Subject: [PATCH] feat(options): Questions tab as 3 columns with conditional border options + new questionhelpfontcolor (Prompt R) config.xml: Questions options reordered into the three pane columns (col1 colors+help, col2 border + children, col3 checkbox color), all width=12; new colorpicker questionhelpfontcolor (default #444444); questionbordercolor/style/dropdown + 4 radii get parent="questionborder". options.twig: Questions pane renders three col-md-4 columns (border-start between), options stacked as col-12; aShowIfValues map carries the multi-value show list (box|top) as data-show-if-value since core passes only parent through; server-side initial d-none is multi-value aware (Prompt Q logic extended); buttons/colorpicker children now also get data-parent/selector_radio_childfield. options.js: updateVisibilityByParent and updateChild are multi-value + checked-radio aware (single-value behaviour unchanged); OPTIONS_JS_TOKEN bumped. custom_header.twig: .question-help-container gets color from questionhelpfontcolor. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- config.xml | 46 ++++++++++------ options/options.js | 18 ++++-- options/options.twig | 70 ++++++++++++++++++------ views/subviews/header/custom_header.twig | 1 + 4 files changed, 96 insertions(+), 39 deletions(-) diff --git a/config.xml b/config.xml index 12a3e85..ca60f5c 100644 --- a/config.xml +++ b/config.xml @@ -140,25 +140,35 @@ + 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. + Prompt R: order = the three columns of the Questions tab (options.twig + renders them in this order): col1 colors+help, col2 border + its + conditional children, col3 checkbox color. All width=12 — inside the + pane each option stacks as col-12 in its column. The border children + carry parent="questionborder"; the show-values "box|top" cannot be an + XML attribute (core passes only `parent` through), so the multi-value + list lives in options.twig (aShowIfValues) and lands as + data-show-if-value="box|top". questionhelpfontcolor (NEW) is applied + in custom_header.twig on .question-help-container. --> - #5e1c64 - #ffffff - #ffffff - #fff3cd - box - solid - #cccccc - 5px - 5px - 5px - 5px - hover - top - #ff005f + #5e1c64 + #ffffff + #ffffff + #fff3cd + #444444 + top + box + #cccccc + solid + hover + 5px + 5px + 5px + 5px + #ff005f