Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
260 stars 75 forks source link

Slider label wrapping can cause handle to move off track #9239

Open ellenupp opened 2 weeks ago

ellenupp commented 2 weeks ago

Check existing issues

Actual Behavior

Long slider labels can wrap and push the handle off the track.

image

Expected Behavior

Ideally labels wouldn't wrap when there is enough space. If it really needs to wrap it should move up and not affect the position of the handle. Also in the above example I wouldn't expect the tick labels to wrap either as there is enough space for them to be inline.

image

Reproduction Sample

https://codepen.io/ellupp/pen/xxeNmoQ

Reproduction Steps

  1. In the sample slide handle to the left and notice that the handle label wraps. It works much better when sliding to the right.

Reproduction Version

2.8.0

Relevant Info

No response

Regression?

No response

Priority impact

p3 - want for upcoming milestone

Impact

No response

Calcite package

Esri team

ArcGIS Dashboards