on master help sign in
Fixed active tab
7bbd761iko
frontend/Pages/Navigation.elm+5−2
@@ -94,11 +94,14 @@ menu { title, items, toggle } =
94 |> List.map
94 |> List.map
95 (\{ icon, name, trigger, current } ->
95 (\{ icon, name, trigger, current } ->
96 li [ Attr.class "p-side-navigation__item" ]
96 li [ Attr.class "p-side-navigation__item" ]
97+ [ a
97− [ a [ Attr.class "p-side-navigation__link", Ev.onClick trigger ]
98+ [ Attr.class "p-side-navigation__link"
99+ , Attr.classList [ ( "is-active", current ) ]
100+ , Ev.onClick trigger
101+ ]
98 [ i
102 [ i
99 [ Attr.class "p-side-navigation__icon"
103 [ Attr.class "p-side-navigation__icon"
100 , Attr.class ("p-icon--" ++ icon)
104 , Attr.class ("p-icon--" ++ icon)
101− , Attr.classList [ ( "is-active", current ) ]
102 ]
105 ]
103 []
106 []
104 , text name
107 , text name