Add classes to the module examples to make axe output more readable

This commit is contained in:
Tessa Kelly 2019-07-30 12:36:53 -07:00
parent 4125826ef4
commit ff9e670166

View File

@ -124,7 +124,10 @@ categoryForDisplay category =
view : Bool -> ModuleExample msg -> Html msg
view showFocusLink { name, content } =
Html.div
[]
[ String.replace "." "-" name
|> (++) "module-example__"
|> Attributes.class
]
[ Html.styled Html.div
[ display block
, backgroundColor glacier