Skip to content

Add support for expandable tree view#69

Merged
jdan merged 3 commits intojdan:masterfrom
muan:details
Apr 27, 2020
Merged

Add support for expandable tree view#69
jdan merged 3 commits intojdan:masterfrom
muan:details

Conversation

@muan
Copy link
Copy Markdown
Contributor

@muan muan commented Apr 27, 2020

The spec for expandable tree view wasn't very clear as the images on the book don't show a mixed state in the tree view, and currently there also isn't support for icons.

I wonder if regular tree view and expandable tree aren't supposed to be mixed? Regardless, this is a step forward.

before after
non-expandable tree view tree view with expandable icons using details element

The minus and plus signs are probably better as icons.

⚠️ I am not sure if the current reset styles on summary is intentional. It's currently inconsistent between Chrome (not reset) and Firefox (reset). Here I added the reset style, but am also happy to move them to .tree-view.

Comment thread docs/docs.css Outdated
Co-Authored-By: Ralfs Garkaklis <ralfs@garkaklis.com>
@jdan
Copy link
Copy Markdown
Owner

jdan commented Apr 27, 2020

omg 😍 this is incredible. thank you

@jdan jdan merged commit 68deceb into jdan:master Apr 27, 2020
@muan muan deleted the details branch April 27, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants