mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-15 02:11:45 +03:00
More reasonable icon default
This commit is contained in:
parent
e80163b83b
commit
f4cb7fdc56
@ -2,7 +2,7 @@ module CommonControls exposing
|
||||
( css, mobileCss, quizEngineMobileCss, notMobileCss
|
||||
, choice
|
||||
, icon, iconNotCheckedByDefault, uiIcon
|
||||
, content
|
||||
, content, exampleHtml
|
||||
, httpError
|
||||
, disabledListItem, premiumDisplay
|
||||
)
|
||||
@ -16,7 +16,7 @@ module CommonControls exposing
|
||||
|
||||
### Content
|
||||
|
||||
@docs content
|
||||
@docs content, exampleHtml
|
||||
@docs httpError
|
||||
|
||||
-}
|
||||
|
@ -348,13 +348,24 @@ initSettings =
|
||||
|
||||
controlIcon : Control ( String, Bool -> Html Msg )
|
||||
controlIcon =
|
||||
Control.map
|
||||
Control.choice
|
||||
[ ( "none", Control.value ( "\\_ -> text \"\"", \_ -> Html.text "" ) )
|
||||
, ( "DisclosureIndicator"
|
||||
, Control.value
|
||||
( "DisclosureIndicator.large [ Css.marginRight (Css.px 8) ]"
|
||||
, DisclosureIndicator.large [ Css.marginRight (Css.px 8) ]
|
||||
)
|
||||
)
|
||||
, ( "UiIcon"
|
||||
, Control.map
|
||||
(\( code, icon ) ->
|
||||
( "\\_ -> Svg.toHtml " ++ code
|
||||
, \_ -> Svg.toHtml icon
|
||||
)
|
||||
)
|
||||
CommonControls.uiIcon
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
controlHeaderContent : Control ( String, Html Msg )
|
||||
|
Loading…
Reference in New Issue
Block a user