diff --git a/src/View.elm b/src/View.elm
@@ -29,7 +29,7 @@ import Html.Lazy exposing (lazy)
import Accessibility.Landmark exposing (application, region)
import Accessibility.Role exposing (alert)
import Accessibility.Key exposing (onKeyDown, enter)
-import Accessibility.Widget exposing (label, hidden)
+import Accessibility.Widget exposing (label)
import Browser exposing (Document)
import Json.Decode
import Regex exposing (Regex, Match, replace)
@@ -80,17 +80,17 @@ display model =
[ onClick Download
, label "Download file"
]
- [ downloadIcon ]
+ [ span [] [ text "Download" ] ]
, button
[ onClick (Upload Requested)
, label "Upload file"
]
- [ uploadIcon ]
+ [ span [] [ text "Upload" ] ]
, button
[ onClick ToggleDarkMode
, label "Toggle dark mode"
]
- [ bulbIcon model ]
+ [ span [] [ text (if model.darkModeOn then "Lighter" else "Darker") ] ]
]
uri : Model -> String
@@ -146,37 +146,6 @@ valid status =
Invalid ->
False
-downloadIcon : Html Msg
-downloadIcon =
- img
- [ src "assets/download.svg"
- , hidden True
- , alt "Download file"
- ]
- []
-
-uploadIcon : Html Msg
-uploadIcon =
- img
- [ src "assets/upload.svg"
- , hidden True
- , alt "Upload file"
- ]
- []
-
-bulbIcon : Model -> Html Msg
-bulbIcon model =
- let
- bulbOn = "assets/bulb-on.svg"
- bulbOff = "assets/bulb-off.svg"
- in
- img
- [ src (if model.darkModeOn then bulbOn else bulbOff)
- , hidden True
- , alt "Toggle dark mode"
- ]
- []
-
errorIcon : Html Msg
errorIcon =
img