Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] Blocked dragging with min and max with same value or at the end of the component #10351

Open
2 of 10 tasks
geospatialem opened this issue Sep 19, 2024 · 0 comments
Open
2 of 10 tasks
Labels
0 - new New issues that need assignment. ArcGIS Living Atlas Issues logged by ArcGIS Living Atlas team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. c-slider Issues that pertain to the calcite-slider component calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@geospatialem
Copy link
Member

geospatialem commented Sep 19, 2024

Check existing issues

Actual Behavior

When the slider has a min and max that collapses in the same nodes the nodes aren't able to allow for dragging in either direction. In some cases users have to drag the slider to the right (since the end node is always on top), and dragging to the left is blocked.

This is especially noticeable when the component's nodes are both set to the end of the component. The slider appears to be stuck, and users can't drag to the left.

CalciteSlider.mp4

Expected Behavior

  • The slider detects the direction of drag and accommodates the node ordering so the user doesn't feel stuck.
  • The user can slide either handle past the other without it being blocked
  • If the component's nodes are stacked they can still slide in either direction
  • If both of the component's nodes are at the end of the component the user can still slide a node in the opposite direction

To explore a custom solution (outside of Calcite):

  1. Visit Topo Map Explorer
  2. In the left panel select the years to engage the custom-built slider
  3. Slide away! ✨
Sliders.mp4

Reproduction Sample

https://codepen.io/geospatialem/pen/gONVzYW

Reproduction Steps

  1. Open the sample
  2. Adjust the min value handle to meet with the max
  3. Observe the min will not adjust accordingly. User is unable to move the handle past the max
  4. Steps 2 and 3 can be repeated for the max value WRT to the min
  5. The more troubling experience observed Move both handles to the end of the component and observe the handles cannot be moved at all via mouse

Reproduction Version

2.12.2

Relevant Info

No response

Regression?

No response

Priority impact

impact - p3 - not time sensitive

Impact

Low, team has a workaround with a custom solution.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Living Atlas

@geospatialem geospatialem added bug Bug reports for broken functionality. Issues should include a reproduction of the bug. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Sep 19, 2024
@github-actions github-actions bot added ArcGIS Living Atlas Issues logged by ArcGIS Living Atlas team members. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels Sep 19, 2024
@geospatialem geospatialem added the c-slider Issues that pertain to the calcite-slider component label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Living Atlas Issues logged by ArcGIS Living Atlas team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. c-slider Issues that pertain to the calcite-slider component calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant