aforemny / elm-mdc

Elm port of the Material Components for the Web CSS/JS library
https://aforemny.github.io/elm-mdc
Apache License 2.0
354 stars 43 forks source link

Menu: missing functionality #173

Closed berenddeboer closed 4 years ago

berenddeboer commented 5 years ago

Currently not implemented:

aforemny commented 5 years ago

Hi @berenddeboer, I tried to improve Menu a bit and pushed some commits to master. I made Menu use List internally, so that gives us keyboard navigation and ripples. I also took care of the menu closing again when clicking outside. If I recall correctly, this is because of an Elm bug that would not update the subscription correctly. So I've worked around that by setting the subscription unconditionally and handling the condition's predicate to the update function.

What do you mean here by selection groups?

berenddeboer commented 5 years ago

Selection groups are documented here:

Selection Group Menu Menus can contain a group of list items that can represent the selection state of elements within the group.