From bddcf1d1f5c3aedb6c9c35f4f283cea1136c0262 Mon Sep 17 00:00:00 2001 From: Wojciech Knapik Date: Mon, 7 May 2018 00:10:52 +0000 Subject: [PATCH] Make the table more vimium friendly Currently columns cannot be sorted using vimium (https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb), because there is no anchor to select. This trivial change makes the elements that change the sort order selectable with vimium, and possibly other browser extensions. --- src/Table.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Table.elm b/src/Table.elm index cf8153c..35c2430 100644 --- a/src/Table.elm +++ b/src/Table.elm @@ -245,12 +245,12 @@ simpleTheadHelp (name, status, onClick) = darkGrey : String -> Html msg darkGrey symbol = - Html.span [ Attr.style [("color", "#555")] ] [ Html.text (" " ++ symbol) ] + Html.a [ Attr.style [("color", "#555")] ] [ Html.text (" " ++ symbol) ] lightGrey : String -> Html msg lightGrey symbol = - Html.span [ Attr.style [("color", "#ccc")] ] [ Html.text (" " ++ symbol) ] + Html.a [ Attr.style [("color", "#ccc")] ] [ Html.text (" " ++ symbol) ] simpleRowAttrs : data -> List (Attribute msg)