Skip to content

Commit

Permalink
Hotfix: adding aria labels to build history links (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 authored and Neal committed Nov 14, 2019
1 parent 27a1f6c commit bfa5862
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/elm/Build.elm
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ recentBuild now timezone org repo build idx =
icon =
recentBuildStatusToIcon build.status idx
in
a [ class "-build", Routes.href <| Routes.Build org repo <| String.fromInt build.number ]
a
[ class "-build"
, Routes.href <| Routes.Build org repo <| String.fromInt build.number
, attribute "aria-label" <| "go to previous build number " ++ String.fromInt build.number
]
[ icon |> SvgBuilder.toHtml [ attribute "aria-hidden" "true" ] []
, div [ class "-tooltip", Util.testAttribute "build-history-tooltip" ]
[ div [ class "-info" ]
Expand Down

0 comments on commit bfa5862

Please sign in to comment.