Skip to content

Width of slider tick dashes not consistent #12783 - #12822

Merged
offtherailz merged 1 commit into
geosolutions-it:masterfrom
rowheat02:filtersliderInconsistentTickWidth
Aug 24, 2026
Merged

offtherailz merged 1 commit into
geosolutions-it:masterfrom
rowheat02:filtersliderInconsistentTickWidth

Conversation

@rowheat02

@rowheat02 rowheat02 commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue with the filter slider to avoid differently rendered tick thickness.

The slider package renders the tick positions using percentages. At different zoom levels, some positions become fractional pixels, and the browser renders the tick marks slightly differently.

This workaround overrides the rendered tick positions and widths with pixel values using JavaScript. It is applied only to FilterSlider component and does not change the slider package itself.

This is a self-contained workaround for a visual-only issue. It is somewhat coupled to the current noUiSlider DOM implementation, so it may need updates if the package structure changes in the future.

Screen.Recording.2026-08-20.at.20.35.07.mov

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Enhancement

Issue

What is the current behavior?

#12783

What is the new behavior?

Now width of all ticks of the filter Slider component will be the same at all zoom levels.
image

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@rowheat02 rowheat02 added this to the 2026.02.02 milestone Aug 20, 2026
@rowheat02
rowheat02 requested a review from offtherailz August 20, 2026 14:59
@cla-bot cla-bot Bot added the CLA Ready label Aug 20, 2026
@rowheat02 rowheat02 linked an issue Aug 20, 2026 that may be closed by this pull request
1 task done
@offtherailz
offtherailz merged commit 6678916 into geosolutions-it:master Aug 24, 2026
16 checks passed
@offtherailz

Copy link
Copy Markdown
Member

Successfully created backport PR for 2026.02.xx:

offtherailz added a commit that referenced this pull request Aug 25, 2026
@tdipisa tdipisa modified the milestones: 2026.02.02, 2026.02.01 Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Width of slider tick dashes not consistent

3 participants