Code Monkey home page Code Monkey logo

Comments (8)

macandcheese avatar macandcheese commented on June 12, 2024 2

@patrickarlt

Here are some designs, combines the style and function of VTSE, Online, Calcite Design Site so it can be used for all purposes.

Propose having props for:
border/lines: true/false (the alignment lines are useful for deeply nested trees, but should give the option of not having them for shallow trees)

scale: default/compact(dense?) - useful for dense implementations like VTSE - 1/2 y-padding.

States:
Dropdowns:

  • Closed / Inactive (no style)
  • Closed / Active (500 weight text, "thick stroke" blue caret)
  • Open / Inactive (no style, rotated caret)
  • Open / Active (rotated caret, 500 weight text, "thick stroke" blue caret)

Children:

  • Inactive (no style)
  • Active (500 weight font, blue dot)
  • Hover (darken text, gray dot)

Original varying designs:
Source

Combined proposed design:
Artboard

Combined proposed design in VTSE (probably a good candidate for "dense / compact" display)
Artboard Copy

Unsure if the border-left needs to be there at all, I think maybe a bold collapsed / blue caret could be enough to indicate closed / active 🤷‍♂

from calcite-design-system.

patrickarlt avatar patrickarlt commented on June 12, 2024 1

@macandcheese this looks great. I'll get started on this this week.

For my own reference https://www.w3.org/TR/wai-aria-practices-1.1/#TreeView

from calcite-design-system.

paulcpederson avatar paulcpederson commented on June 12, 2024

I'm not sure if the calcite team has looked at that pattern. /cc @julio8a @macandcheese

from calcite-design-system.

macandcheese avatar macandcheese commented on June 12, 2024

I think we can extend the updated side nav styles to support this, just with the new "active dot" style. @patrickarlt - the density issue you encounter still needs to be addressed - the proto design feels like a good scale for marketing / docs, but for an app, something more along the lines of what Mapbox does in their tile editor navigation would be appropriate, scale-wise.

from calcite-design-system.

julio8a avatar julio8a commented on June 12, 2024

Agreed, I think it'll be good to base it on new 2.0 side nav.

from calcite-design-system.

patrickarlt avatar patrickarlt commented on June 12, 2024

@julio8a @macandcheese I'm going to have some time to spend on this since I want to use it for an upcoming release on the developers site. From a design perspective how we want to proceed? Should I forge ahead and just do a mix of http://proto.esri.com/#/detail/Navigation/Tree%20Navigation/1 and my own best judgement? I tried starting up https://github.com/ArcGIS/calcite-design-system to see if there was anything but I got a lot of errors in the process.

How do you want to proceed?

from calcite-design-system.

paulcpederson avatar paulcpederson commented on June 12, 2024

✨ 👌

from calcite-design-system.

macandcheese avatar macandcheese commented on June 12, 2024

Closing as this has been merged in, can open subsequent issues for any other tasks if needed ✨

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.