mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 06:33:09 +03:00
Use banner alert v6
This commit is contained in:
parent
ccd4fbe28e
commit
c29f8ebea7
1
elm.json
1
elm.json
@ -15,6 +15,7 @@
|
||||
"Nri.Ui.BannerAlert.V3",
|
||||
"Nri.Ui.BannerAlert.V4",
|
||||
"Nri.Ui.BannerAlert.V5",
|
||||
"Nri.Ui.BannerAlert.V6",
|
||||
"Nri.Ui.Button.V3",
|
||||
"Nri.Ui.Button.V4",
|
||||
"Nri.Ui.Button.V5",
|
||||
|
@ -1,9 +1,13 @@
|
||||
module Nri.Ui.BannerAlert.V5 exposing (alert, error, neutral, success, LinkConfig, BannerContent(..), Target(..))
|
||||
module Nri.Ui.BannerAlert.V6 exposing (alert, error, neutral, success, LinkConfig, BannerContent(..), Target(..))
|
||||
|
||||
{-|
|
||||
|
||||
@docs alert, error, neutral, success, LinkConfig, BannerContent, Target
|
||||
|
||||
Changes from V5:
|
||||
|
||||
- takes HTML rather than BannerContent
|
||||
|
||||
-}
|
||||
|
||||
import Accessibility.Styled as Html exposing (Html)
|
||||
|
@ -8,12 +8,12 @@ module Examples.BannerAlert exposing (example, State, init, Msg, update)
|
||||
|
||||
import Html.Styled exposing (div, h3, text)
|
||||
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
||||
import Nri.Ui.BannerAlert.V5 as BannerAlert
|
||||
import Nri.Ui.BannerAlert.V6 as BannerAlert
|
||||
|
||||
|
||||
example : (Msg -> msg) -> State -> ModuleExample msg
|
||||
example parentMsg state =
|
||||
{ name = "Nri.Ui.BannerAlert.V5"
|
||||
{ name = "Nri.Ui.BannerAlert.V6"
|
||||
, category = Messaging
|
||||
, content =
|
||||
[ if state.show then
|
||||
|
Loading…
Reference in New Issue
Block a user