@@ -31,13 +31,13 @@ navigation : Config msg -> List (Html msg)
3131navigation { topButton, title } =
3232 (case topButton of
3333 Just (MenuButton cfg) ->
34− optional cfg.visible (menu cfg)
34+ [ menu cfg ]
3535
3636 _ ->
3737 []
3838 )
3939 ++ [ nav [ Attr.class "p-tabs p-tabs__list" ]
40− [ h3 [ Attr.class "u-no-margin u-no-padding" ]
40+ [ h3 [ Attr.class "" ]
4141 [ case topButton of
4242 Nothing ->
4343 button
@@ -82,8 +82,8 @@ mapMenuConfig f { title, items, toggle, visible } =
8282
8383
8484menu : MenuConfig msg -> Html msg
85−menu { title, items, toggle } =
86− div [ Attr.class "p-side-navigation--icons is-drawer-expanded" ]
85+menu { title, items, toggle, visible } =
86+ div [ Attr.class "p-side-navigation--icons", Attr.classList [ ( "is-drawer-expanded", visible ) ] ]
8787 [ div [ Attr.class "p-side-navigation__overlay" ] []
8888 , nav [ Attr.class "p-side-navigation__drawer" ]
8989 [ div [ Attr.class "p-side-navigation__drawer-header" ]