Move JS range slider out of the minimum field wrapper (noUISlider)

Created on 9 July 2025, about 1 month ago

Problem/Motivation

Currently the .bef-slider element is appended to the wrapper of the minimum value field (after the min input field).
From a themer perspective, this is kind of a worst-case scenario in terms of layouting this element. Furthermore, it doesn't feel "semantically correct."

I think very typical layouts for this kind of slider are:
min_field|range_slider|max_field
or
range_slider
min_field|max_field

Neither is possible with the current markup, except by using the position: absolute.

Steps to reproduce

Proposed resolution

Place the .bef-slider element between the min and max field:

const $minFieldWrapper = $min.parent('.form-item');

if($minFieldWrapper.length) {
  $minFieldWrapper.after(slider);
}else{
  $min.after(slider);
}

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

7.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024