Now that we have our cards more or less looking good lets add a button and style it as well so that it serves as a starting point for our dropdown component, this lesson will also help us to learn how to use the Element.Input
module from elm-ui.
the given snippet for the button has an extra set of brackets- it should be
btn =
Input.button
[ alignTop
, alignRight
, focused
[ Background.color (rgb255 25 45 91)
, Font.color white
]
]
{ label = el [] (text "COMPARE")
, onPress = Nothing
}
You are correct! I fixed this issue in the transcripts.