mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-19 11:41:32 +03:00
Use new icons in Message.V1.tiny
This commit is contained in:
parent
e5e144ff79
commit
5ef1fe3a6e
@ -114,25 +114,30 @@ tiny theme content =
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tip ->
|
Tip ->
|
||||||
{ icon = tinyIconContainer [ color Colors.yellow ] (NriSvg.toHtml SpriteSheet.bulb)
|
{ icon =
|
||||||
|
tinyIconContainer []
|
||||||
|
(UiIcon.bulb
|
||||||
|
|> NriSvg.withColor Colors.yellow
|
||||||
|
|> NriSvg.withLabel "Tip"
|
||||||
|
|> NriSvg.toHtml
|
||||||
|
)
|
||||||
, content = tinyAlertString Colors.navy content
|
, content = tinyAlertString Colors.navy content
|
||||||
}
|
}
|
||||||
|
|
||||||
Success ->
|
Success ->
|
||||||
{ icon =
|
{ icon =
|
||||||
tinyIconContainer
|
tinyIconContainer
|
||||||
[ color Colors.white
|
[]
|
||||||
, backgroundColor Colors.green
|
(UiIcon.checkmarkInCircle
|
||||||
]
|
|> NriSvg.withColor Colors.green
|
||||||
(div
|
|> NriSvg.withLabel "Success"
|
||||||
[ css [ width (px 12), marginTop (px 1) ] ]
|
|> NriSvg.toHtml
|
||||||
[ NriSvg.toHtml SpriteSheet.checkmark ]
|
|
||||||
)
|
)
|
||||||
, content = tinyAlertString Colors.greenDarkest content
|
, content = tinyAlertString Colors.greenDarkest content
|
||||||
}
|
}
|
||||||
|
|
||||||
Custom customTheme ->
|
Custom customTheme ->
|
||||||
{ icon = tinyIconContainer [ color customTheme.color ] (NriSvg.toHtml customTheme.icon)
|
{ icon = tinyIconContainer [] (NriSvg.toHtml customTheme.icon)
|
||||||
, content = tinyAlertString customTheme.color content
|
, content = tinyAlertString customTheme.color content
|
||||||
}
|
}
|
||||||
in
|
in
|
||||||
@ -440,16 +445,10 @@ somethingWentWrong errorMessageForEngineers =
|
|||||||
|
|
||||||
exclamation : Color -> Html msg
|
exclamation : Color -> Html msg
|
||||||
exclamation iconColor =
|
exclamation iconColor =
|
||||||
tinyIconContainer
|
tinyIconContainer []
|
||||||
[ color Colors.white
|
(UiIcon.exclamation
|
||||||
, backgroundColor iconColor
|
|> NriSvg.withColor iconColor
|
||||||
]
|
|> NriSvg.toHtml
|
||||||
(styled div
|
|
||||||
[ height (px 13)
|
|
||||||
, marginTop (px 1)
|
|
||||||
]
|
|
||||||
[]
|
|
||||||
[ NriSvg.toHtml SpriteSheet.exclamationMark ]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user