Skip to content
Snippets Groups Projects
Commit 05dbfdd4 authored by Jaladh Singhal's avatar Jaladh Singhal
Browse files

Added aria-role since HTML semantics were not followed

parent ad5d1271
No related branches found
No related tags found
Loading
......@@ -3,6 +3,7 @@ module Style.Widgets.Meter exposing (meter)
import Element
import Element.Background as Background
import Element.Font as Font
import Html.Attributes as HtmlA
import Style.Helpers as SH
import Style.Types exposing (ExoPalette)
......@@ -18,12 +19,11 @@ meter palette title subtitle value maximum =
[ Element.text title
, Element.el [ Element.alignRight ] (Element.text subtitle)
]
{- TODO: Add aria attributes using Html.Attribute.attribute or try element.region -}
, Element.row
[ Element.width (Element.px 260)
, Element.height (Element.px 25)
, Background.color (SH.toElementColorWithOpacity palette.primary 0.15)
, Element.htmlAttribute (HtmlA.attribute "role" "progressbar")
]
[ Element.el
[ Element.width (Element.fillPortion value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment