Use banner alert v6

This commit is contained in:
Tessa Kelly 2019-10-10 15:05:41 -07:00
parent ccd4fbe28e
commit c29f8ebea7
3 changed files with 8 additions and 3 deletions

View File

@ -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",

View File

@ -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)

View File

@ -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