jdan / 98.css

A design system for building faithful recreations of old UIs
https://jdan.github.io/98.css
MIT License
9.17k stars 301 forks source link

Add support for expandable tree view #69

Closed muan closed 4 years ago

muan commented 4 years ago

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.

jdan commented 4 years ago

omg 😍 this is incredible. thank you