@@ -2,7 +2,7 @@ module Feeds.View exposing (view)
2
2
3
3
import DateFormat as F
4
4
import Dict
5
- import Feeds.Icons exposing (bookmarkSlashSolid )
5
+ import Feeds.Icons exposing (arrowTopRightOnSquareSolid , bookmarkSlashSolid )
6
6
import Feeds.Model exposing (..)
7
7
import Feeds.Msg exposing (..)
8
8
import Feeds.Options as Options
@@ -42,8 +42,11 @@ viewEntry timezone entry =
42
42
43
43
else
44
44
H . button
45
- [ A . class " px-4 py-2 text-sm font-extrabold bg-blue-700 text-white" , E . onClick ( MarkAsRead entry) ]
46
- [ H . text " Mark as read" ]
45
+ [ A . class " size-6"
46
+ , A . attribute " aria-label" " Mark as read"
47
+ , E . onClick ( MarkAsRead entry)
48
+ ]
49
+ [ checkCircle [] ]
47
50
48
51
title =
49
52
H . div [ A . class " flex flex-col" ]
@@ -56,15 +59,22 @@ viewEntry timezone entry =
56
59
, H . span [] [ H . text postedAt ]
57
60
]
58
61
62
+ label =
63
+ " View entry "
64
+ ++ ( entry. title
65
+ |> Maybe . withDefault " n/a"
66
+ )
67
+
59
68
actions =
60
69
H . div [ A . class " md:shrink-0 flex self-start mt-1 ml-auto space-x-4" ]
61
70
[ H . a
62
71
[ A . href entry. url
63
72
, A . target " _blank"
64
- , A . class " self-start px-4 py-2 text-sm font-extrabold bg-blue-700 text-white"
73
+ , A . class " size-6"
74
+ , A . attribute " aria-label" label
65
75
, E . onClick ( MarkAsRead entry)
66
76
]
67
- [ H . text " View " ]
77
+ [ arrowTopRightOnSquareSolid ]
68
78
, maybeButton
69
79
]
70
80
in
0 commit comments