vanilla_respondage/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 368929c1cf feat(slider): row 214 — grey handle for untouched sliders, theme color when touched
Core's slider-untouched/slider-touched classes on the .slider element are not
a reliable state signal (with slider_default_set an untouched slider keeps
slider-touched), so the theme now derives the state itself: scripts/custom.js
syncs a slider-is-untouched class onto li.slider-item from the real answer
input (#answer<fname>, empty = untouched) on load and on every change/keyup
that core fires on it; css/custom.css greys .slider-handle and makes
.slider-selection transparent while that class is set (specificity 0,3,0 beats
the .slider-handle rule in custom_header.twig, which still colors touched
handles with sliderhandlecolor). Works for horizontal and vertical sliders;
inherited by all variants via extends, no config.xml change.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 08:57:23 +01:00
..
custom.js feat(slider): row 214 — grey handle for untouched sliders, theme color when touched 2026-11-30 08:57:23 +01:00