Adds a note about the clickable text being required

This commit is contained in:
Tessa Kelly 2019-07-11 10:07:10 -07:00
parent 8a99134bd8
commit 7a05940960

View File

@ -14,6 +14,7 @@ import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
import Nri.Ui.Colors.V1 as Colors import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.DisclosureIndicator.V2 as DisclosureIndicator import Nri.Ui.DisclosureIndicator.V2 as DisclosureIndicator
import Nri.Ui.Fonts.V1 as Fonts import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Text.V2 as Text
{-| -} {-| -}
@ -29,7 +30,8 @@ example parentMessage state =
{ name = "Nri.Ui.DisclosureIndicator.V2" { name = "Nri.Ui.DisclosureIndicator.V2"
, category = Widgets , category = Widgets
, content = , content =
[ viewExample ToggleLarge [ Text.smallBodyGray [ Html.text "The disclosure indicator is only the caret. It is NOT a button -- you must create a button or clickabletext yourself!" ]
, viewExample ToggleLarge
state.largeState state.largeState
(Css.px 17) (Css.px 17)
(DisclosureIndicator.large [ Css.marginRight (Css.px 10) ] state.largeState) (DisclosureIndicator.large [ Css.marginRight (Css.px 10) ] state.largeState)