Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Fix accessibility insight warnings (#579)
Browse files Browse the repository at this point in the history
* Add missing labels

* Add comment for non li in ol problem

* Apply high contrast color for revision link

* Apply high contrast color for header

* Standardize plural

* Fix to apply empty label
  • Loading branch information
kachick authored Sep 4, 2024
1 parent 3f0e419 commit dd6b842
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ a {
padding: 0 2ch;
width: 100%;
height: 100%;
color: black;
color: whitesmoke;
}

#page > .header .github-link {
Expand Down Expand Up @@ -123,7 +123,7 @@ a {

.revision-link {
text-decoration: none;
color: #003847;
color: #00141a;
}

.users-panel {
Expand Down
14 changes: 11 additions & 3 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ userPanel : Model -> Html Msg
userPanel model =
div [ Attr.class "users-panel" ]
[ ol []
-- FIXME: Fix broken HTML structure. Do not include non li in ol. ~ GH-577
(div [ Attr.class "list-container" ]
[ div [ Attr.class "list-item" ] [ addUserInput model ], addUserButton model ]
:: (model.users
Expand Down Expand Up @@ -537,25 +538,31 @@ newIntervalFields model =
[ text "/"
, space
, select
[ Attr.class "value-select"
[ Attr.id "duration-hours-select"
, Attr.class "value-select"
, onInput (UpdateInterval MobSession.Hour)
, Attr.disabled model.mobbing
]
(hoursOptions |> optionsFormatter)
, label [ Attr.for "duration-hours-select" ] []
, text ":"
, select
[ Attr.class "value-select"
[ Attr.id "duration-minutes-select"
, Attr.class "value-select"
, onInput (UpdateInterval MobSession.Min)
, Attr.disabled model.mobbing
]
(minutesOptions |> optionsFormatter)
, label [ Attr.for "duration-minutes-select" ] []
, text ":"
, select
[ Attr.class "value-select"
[ Attr.id "duration-seconds-select"
, Attr.class "value-select"
, onInput (UpdateInterval MobSession.Sec)
, Attr.disabled model.mobbing
]
(secondsOptions |> optionsFormatter)
, label [ Attr.for "duration-seconds-select" ] []
]


Expand Down Expand Up @@ -667,6 +674,7 @@ appHeader =
[ img
[ Attr.class "github-logo"
, Attr.src "/images/github-mark.svg"
, Attr.alt "Logo of GitHub"
, Attr.draggable "false"
, Attr.height 24
, Attr.width 24
Expand Down

0 comments on commit dd6b842

Please sign in to comment.