git.iko.soy/typeable/elm-ui
on master help sign in
Merge pull request #225 from alexkorban/issue218

Add test for issue 218

commit4da35173af814662cbd67e57c339b3c60fa910c3 authorMatthew Griffith <mdg.griffith@gmail.com> dateThu 28 May 2020, 23:33 (6 years ago) parent00d7803b1a276d
1 file changed+28
tests-rendering/cases/open/LabelledInputAlignRight.elm+28
tests-rendering/cases/open/LabelledInputAlignRight.elmnew file+28
@@ -0,0 +1,28 @@
1+module LabelledInputAlignRight exposing (view)
2+
3+import Testable.Element exposing (..)
4+import Testable.Element.Input as Input
5+
6+
7+view =
8+ layout [] <|
9+ column [ width fill ]
10+ [ Input.text
11+ [ width (px 200)
12+ , alignRight
13+ ]
14+ { onChange = always False
15+ , text = ""
16+ , placeholder = Nothing
17+ , label = Input.labelLeft [] (text "label")
18+ }
19+ , Input.text
20+ [ width (px 200)
21+ , alignRight
22+ ]
23+ { onChange = always False
24+ , text = ""
25+ , placeholder = Nothing
26+ , label = Input.labelHidden "label"
27+ }
28+ ]