calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

Slider handle misaligned if browser default font is adjusted

Open gsoosalu opened this issue 2 years ago • 1 comments

Actual Behavior

Calcite slider's handle appears below or above the slider line: image image

Expected Behavior

Slider's handle should be in the middle of the line image

Reproduction Sample

https://developers.arcgis.com/javascript/latest/sample-code/widgets-shadow-cast/live/

Reproduction Steps

  1. Change in browser setting the font size to either small or large. Screenshot from Chrome: image

  2. Open JS API sample: https://developers.arcgis.com/javascript/latest/sample-code/widgets-shadow-cast/live/

  3. Open color-picker

  4. The opacity slider's handle is misaligned

This also appears when enabling label-handles in the Calcite storybook: https://esri.github.io/calcite-components/?path=/story/components-controls-slider--single-value

Reproduction Version

beta.82

Relevant Info

MacOS and Windows Chrome 102.0.5005.115 Firefox 101.0.1

Regression?

No response

gsoosalu avatar Jun 13 '22 09:06 gsoosalu

Seems like the current positioning of the handle is based on a fixed offset size. That would need to change to be relative instead of fixed.

driskull avatar Jul 12 '22 17:07 driskull

Hi all, will this be addressed any time soon?

gsoosalu avatar Jan 06 '23 15:01 gsoosalu

Hi @gsoosalu, thanks for reaching out. We plan to address to our February release.

geospatialem avatar Jan 18 '23 21:01 geospatialem

Installed and assigned for verification.

github-actions[bot] avatar Feb 16 '23 22:02 github-actions[bot]

Verified on Storybook and in 1.0.8-next.1.

image

geospatialem avatar Feb 28 '23 00:02 geospatialem