sodium icon indicating copy to clipboard operation
sodium copied to clipboard

Add dropdown menu, advanced list content and message components

Open tdanecker opened this issue 5 years ago • 0 comments

Add some more components from semantic-ui:

  • Dropdown.Divider
  • Dropdown.Item
  • Dropdown.Menu
  • List.Content
  • List.Description
  • List.Header
  • List.Icon
  • Message

The style how parentheses were used in the keys.clj file was very inconsistent. I changed them to a parinfer style in a separate commit so that it's easier to work with this file.

Also, I fixed a typo in the dropdown keys.

Just let me know if I should create separate PRs for those changes.

Also, I'm not that happy about dropdown-menus for now. It has to be called as a function instead of a component. Otherwise the dropdown-menu wouldn't open when clicked. I suspect that the Dropdown expects the Dropdown.Menu as a direct ancestor but sodium would introduce a small wrapper-component in between which messes things up.

[na/dropdown {}
  (na/dropdown-menu {}
    [na/dropdown-item {:text "menu item"}])]

tdanecker avatar Feb 03 '20 15:02 tdanecker