mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 16:44:41 +03:00
Merge branch 'master' into zamboni/add-button-v7
This commit is contained in:
commit
5899d7a386
@ -129,22 +129,21 @@ view_ theme model =
|
|||||||
"false"
|
"false"
|
||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
]
|
, if not model.showLabel then
|
||||||
, if not model.showLabel then
|
Html.label
|
||||||
Html.label
|
([ Attributes.for (generateId model.label)
|
||||||
([ Attributes.for (generateId model.label)
|
]
|
||||||
, Attributes.css [ InputStyles.label theme model.isInError ]
|
++ Accessibility.Styled.Style.invisible
|
||||||
]
|
)
|
||||||
++ Accessibility.Styled.Style.invisible
|
[ Html.text model.label ]
|
||||||
)
|
|
||||||
[ Html.text model.label ]
|
|
||||||
|
|
||||||
else
|
else
|
||||||
Html.label
|
Html.label
|
||||||
[ Attributes.for (generateId model.label)
|
[ Attributes.for (generateId model.label)
|
||||||
, Attributes.css [ InputStyles.label theme model.isInError ]
|
, Attributes.css [ InputStyles.label theme model.isInError ]
|
||||||
]
|
]
|
||||||
[ Html.text model.label ]
|
[ Html.text model.label ]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ type alias State =
|
|||||||
{-| -}
|
{-| -}
|
||||||
example : (Msg -> msg) -> State -> ModuleExample msg
|
example : (Msg -> msg) -> State -> ModuleExample msg
|
||||||
example parentMessage state =
|
example parentMessage state =
|
||||||
{ filename = "Nri.Ui.TextArea.V3"
|
{ filename = "Nri.Ui.TextArea.v3"
|
||||||
, category = Inputs
|
, category = Inputs
|
||||||
, content =
|
, content =
|
||||||
[ Text.heading [ Html.text "Textarea controls" ]
|
[ Text.heading [ Html.text "Textarea controls" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user