mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-21 04:07:54 +03:00
return plain html from communicateState rather than a list
This commit is contained in:
parent
7dcb6c1f03
commit
28c98bd208
@ -86,7 +86,7 @@ example =
|
||||
]
|
||||
]
|
||||
]
|
||||
, li [] (Guidance.communicateState moduleName)
|
||||
, li [] [ Guidance.communicateState moduleName ]
|
||||
]
|
||||
]
|
||||
, view = view
|
||||
|
@ -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
|
||||
|
@ -82,7 +82,7 @@ example =
|
||||
, { keys = [ Esc ], result = "Closes the menu" }
|
||||
]
|
||||
, preview = [ preview ]
|
||||
, about = Guidance.communicateState moduleName
|
||||
, about = [ Guidance.communicateState moduleName ]
|
||||
, view = view
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ example =
|
||||
, previewFakeLink "Next" []
|
||||
]
|
||||
]
|
||||
, about = Guidance.communicateState moduleName
|
||||
, about = [ Guidance.communicateState moduleName ]
|
||||
, view =
|
||||
\ellieLinkConfig model ->
|
||||
let
|
||||
|
@ -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
|
||||
|
@ -104,7 +104,7 @@ example =
|
||||
[ Text.caption [ Text.plaintext "Tab 1 content" ] ]
|
||||
]
|
||||
]
|
||||
, about = Guidance.communicateState moduleName
|
||||
, about = [ Guidance.communicateState moduleName ]
|
||||
, view =
|
||||
\ellieLinkConfig model ->
|
||||
let
|
||||
|
@ -85,7 +85,7 @@ example =
|
||||
[ Text.caption [ Text.plaintext "Tab 1 content" ] ]
|
||||
]
|
||||
]
|
||||
, about = Guidance.communicateState moduleName
|
||||
, about = [ Guidance.communicateState moduleName ]
|
||||
, view =
|
||||
\ellieLinkConfig model ->
|
||||
let
|
||||
|
@ -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 component’s semantics follow accessibility guidelines and best practices, this component’s 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
|
||||
|
Loading…
Reference in New Issue
Block a user