Updates Icon usage to handle separate Icon size Style values

This commit is contained in:
Håkon Rossebø 2016-03-25 00:58:07 +01:00
parent 1ad2eb9d3f
commit bcd5e3656a
2 changed files with 2 additions and 2 deletions

View file

@ -24,6 +24,6 @@ view = [ div [][p [][]
, styled span [Badge.withBadge "Δ"] [ ] [ text "Span with HTML symbol - Delta" ] , styled span [Badge.withBadge "Δ"] [ ] [ text "Span with HTML symbol - Delta" ]
, p [][] , p [][]
, span [][text "Icon with badge"] , span [][text "Icon with badge"]
, Icon.view "face" [Icon.iconSize Icon.S24, Badge.withBadge "33", Badge.overlap ] [] , Icon.view "face" [Icon.size24, Badge.withBadge "33", Badge.overlap ] []
] ]
] ]

View file

@ -264,7 +264,7 @@ tabsView addr model tabs =
, ("mdl-layout__tab-bar-" ++ direction ++ "-button", True) , ("mdl-layout__tab-bar-" ++ direction ++ "-button", True)
] ]
] ]
[ Icon.view ("chevron_" ++ direction) [Icon.iconSize Icon.S] [ Icon.view ("chevron_" ++ direction) [Icon.size24]
[onClick addr (ScrollTab offset)] [onClick addr (ScrollTab offset)]
-- TODO: Scroll event -- TODO: Scroll event
] ]