Comments (8)
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)
Combined proposed design in VTSE (probably a good candidate for "dense / compact" display)
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.
@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.
I'm not sure if the calcite team has looked at that pattern. /cc @julio8a @macandcheese
from calcite-design-system.
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.
Agreed, I think it'll be good to base it on new 2.0 side nav.
from calcite-design-system.
@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.
✨ 👌
from calcite-design-system.
Closing as this has been merged in, can open subsequent issues for any other tasks if needed ✨
from calcite-design-system.
Related Issues (20)
- Action: Create localized template for aria-label
- closing tab raise javascript exception in console HOT 1
- input-date-picker: closes date-picker when switching between months using arrow/page keys. HOT 3
- [Tokens Epic] Restore Input corner-radius behavior
- Clean up fake Storybook knobs and set up controls for simple stories
- Drop `_TestOnly` story suffix
- Remove `enforce-ref-last-prop` rule from the provided config
- Remove `strict-boolean-attributes` rule from the provided config
- Use deep piercing selectors instead of separate selector + shadow selectors in common test helpers HOT 1
- Derive a `hasScrollbar(el)` utility for determining whether `offsetWidth` is less than the `scrollWidth`
- incorrect focus outline color HOT 1
- Deprecate the escapeDisabled property on modal and sheet in favor of prevented events
- [Carousel] Add support for displaying multiple Carousel Items at once
- remove public guid properties on checkbox and radio-button
- Add more details about commit message format to the contributing doc HOT 2
- Add CSS class map pattern entry to conventions doc
- [Carousel] Improve support for high item counts
- Replace `autoClosableRetainsCloseButton` alert screenshot test with e2e
- Split Button: No way to set href for links on the primary button
- removing a tab triggers exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calcite-design-system.