carbon-design-system / carbon-design-kit

A versioned, comprehensive kit of the Carbon Design System visual assets (components, icons, pictograms, text styles, color styles, grid templates).
Apache License 2.0
1.08k stars 153 forks source link

[TreeView]: There is not distinction between "selected" and "active" in the Figma library #794

Open janhassel opened 8 months ago

janhassel commented 8 months ago

Detailed description

Is this issue related to a specific component? If so please give the page, artboard, and layer/symbol name.

TreeView -> Branch node item

What did you expect to happen? What happened instead? What would you like to see changed?

In a multi-select TreeView, there is the distinction between an active node (blue border on the left) and a selected node (gray background). This is not possible to reflect in the current Figma library as the "Selected" state applies both the border and the background.

Is this issue being filed based on a discrepancy between the website/code and the kit? If so what is the inconsistency?

see above

Steps to reproduce the issue

  1. Open TreeView story
  2. Enable "multiselect"
  3. Use cmd+click to select multiple nodes

Figma:

image

Code:

image
laurenmrice commented 8 months ago

Hey @janhassel Thanks for opening this issue,

Frame 1