Let the slider controls take their colours from the slider in 1.11.3
CMS quality / php (8.2) (push) Canceled after 0s
CMS quality / php (8.4) (push) Canceled after 0s
CMS quality / browser (push) Canceled after 0s
CMS quality / mysql (push) Canceled after 0s

Dots, arrows, counter and button background are style properties of the
slider ("Slider-Steuerung"), written as custom properties onto the slider and
onto the control bar the script places after it, so the script-free markers
and the scripted controls share the same colours.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
kantarciandClaude Fable 5.1 committed 2026-09-14 18:46:36 +02:00
1 parent 9095aa5d2c
commit 6dc30a43fe
9 files changed
+74 -3

No files matched your search

+6
View File
@@ -185,6 +185,12 @@ final class StyleCompiler
if ('' !== $images) {
$rules .= sprintf('#%s img{%s}', $id, $images);
}
// Slider colours: on the slider for the script-free markers, and on the control bar
// the script places right after it.
$controls = $this->declarations($values, 'controls', $device);
if ('' !== $controls) {
$rules .= sprintf('#%s,#%s + .slider-controls{%s}', $id, $id, $controls);
}
$hover = is_array($values['hover'] ?? null) ? $this->declarations($values['hover'], 'self', $device) : '';
if ('' !== $hover) {
$rules .= sprintf('#%s:hover,#%s:focus-within{%s}', $id, $id, $hover);