Code Monkey home page Code Monkey logo

Comments (8)

macandcheese avatar macandcheese commented on June 1, 2024 1

Hey, we didn't have plans to change the design of this for 2.0.

Ideally the functionality we'd add in a web component would be things like support for multiple handles, scale options, better data ticks, value display etc. It'll also be easier to style since browser support for range inputs is pretty inconsistent 🙏.

from calcite-design-system.

macandcheese avatar macandcheese commented on June 1, 2024 1

I think we need to modify the above designs to have both handles vertically centered on the range track, especially in dense applications.

The above labels also interfered with form labels and can take up a lot of vertical space, if I remember, so we'll probably want to adapt for that, and keep in mind use cases where the input fields are not necessarily attached to the handle, like in @patrickarlt screenshot above.

from calcite-design-system.

patrickarlt avatar patrickarlt commented on June 1, 2024

For potential future reference this is the zoom slider we are using in the vector tile style editor.

Screenshot 2019-05-15 16 09 13

Would love to replace this with something from this repo.

from calcite-design-system.

julio8a avatar julio8a commented on June 1, 2024

Following Adam's comment:

The initial (basic) slider is already in 1.x.
https://esri.github.io/calcite-web/documentation/components/#sliders

For 1.x we had the basic slider, but there are more features we want to add, like notches, range, etc.

Here's a mock-up:
image

Though the concept of the low-end range handle is nice (below the slider), it proved faulty on mobile when sliding as the value is hidden by the finger. Therefore, it's best to keep the low-end range value displayed above the slider.

from calcite-design-system.

patrickarlt avatar patrickarlt commented on June 1, 2024

I am 100% ok with changing the design in VTSE to have the inputs attached to the handles as per the designs in #4 (comment). Not a firm requirement on our end.

from calcite-design-system.

macandcheese avatar macandcheese commented on June 1, 2024

For sure, IMO it adds unnecessary y-height because you also need to accommodate for a label above the handle, and most use cases for multi-handle sliders will likely be in more data rich / dense UI.

Maybe a prop option could allow for both options!

I have been thinking about scaling for things like this... I could see a "half" scale modifier being useful for VTSE or other really tight interfaces. Same for dropdown, etc. Could set a "scale prop" modifier on a per component basis for type and padding scale?

from calcite-design-system.

paulcpederson avatar paulcpederson commented on June 1, 2024

On the off-chance somebody wants to pick this up while I'm out next week my in-progress work is staged on the paulcpederson/loader branch.

from calcite-design-system.

paulcpederson avatar paulcpederson commented on June 1, 2024

Any further work to the slider can be opened as new issues. Closing for now.

from calcite-design-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.