return plain html from communicateState rather than a list

This commit is contained in:
Tessa Kelly 2024-02-13 16:36:53 -07:00
parent 7dcb6c1f03
commit 28c98bd208
8 changed files with 14 additions and 14 deletions

View File

@ -86,7 +86,7 @@ example =
]
]
]
, li [] (Guidance.communicateState moduleName)
, li [] [ Guidance.communicateState moduleName ]
]
]
, view = view

View File

@ -54,10 +54,10 @@ example =
, subscriptions = \_ -> Sub.none
, preview = preview
, about =
Guidance.communicateState moduleName
++ [ Guidance.helpfullyDisabled moduleName
, Guidance.message moduleName
]
[ Guidance.communicateState moduleName
, Guidance.helpfullyDisabled moduleName
, Guidance.message moduleName
]
, view =
\ellieLinkConfig state ->
let

View File

@ -82,7 +82,7 @@ example =
, { keys = [ Esc ], result = "Closes the menu" }
]
, preview = [ preview ]
, about = Guidance.communicateState moduleName
, about = [ Guidance.communicateState moduleName ]
, view = view
}

View File

@ -58,7 +58,7 @@ example =
, previewFakeLink "Next" []
]
]
, about = Guidance.communicateState moduleName
, about = [ Guidance.communicateState moduleName ]
, view =
\ellieLinkConfig model ->
let

View File

@ -58,7 +58,7 @@ example =
, subscriptions = \_ -> Sub.none
, preview = [ viewPreview ]
, about =
Text.smallBody
[ Text.smallBody
[ Text.html
[ Html.text "Check out "
, ClickableText.link "Tessa's demo"
@ -68,7 +68,8 @@ example =
, Html.text " to get a better sense of whether to use the tabs or radio buttons pattern under the hood."
]
]
:: Guidance.communicateState moduleName
, Guidance.communicateState moduleName
]
, view =
\ellieLinkConfig state ->
let

View File

@ -104,7 +104,7 @@ example =
[ Text.caption [ Text.plaintext "Tab 1 content" ] ]
]
]
, about = Guidance.communicateState moduleName
, about = [ Guidance.communicateState moduleName ]
, view =
\ellieLinkConfig model ->
let

View File

@ -85,7 +85,7 @@ example =
[ Text.caption [ Text.plaintext "Tab 1 content" ] ]
]
]
, about = Guidance.communicateState moduleName
, about = [ Guidance.communicateState moduleName ]
, view =
\ellieLinkConfig model ->
let

View File

@ -8,9 +8,9 @@ import Nri.Ui.Text.V6 as Text
import Routes
communicateState : String -> List (Html msg)
communicateState : String -> Html msg
communicateState moduleName =
[ Text.smallBody
Text.smallBody
[ Text.html
[ text "As long as this components semantics follow accessibility guidelines and best practices, this components state and other meaningful attributes should be communicated automatically to screen readers & similar assistive technology without the need to send special announcements to the "
, ClickableText.link "ATAC"
@ -25,7 +25,6 @@ communicateState moduleName =
, text ". "
]
]
]
helpfullyDisabled : String -> Html msg