From 2b0787bb3adb541c1f2d7097fc47f2347cb4d919 Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Mon, 22 Aug 2022 15:57:58 +0300 Subject: [PATCH] fix: add discernible text to buttons --- src/main/frontend/components/header.cljs | 4 ++-- src/main/frontend/components/right_sidebar.cljs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/frontend/components/header.cljs b/src/main/frontend/components/header.cljs index 75e3fb3504..ffc980f31a 100644 --- a/src/main/frontend/components/header.cljs +++ b/src/main/frontend/components/header.cljs @@ -132,7 +132,7 @@ (ui/with-shortcut :ui/toggle-left-sidebar "bottom" [:button.#left-menu.cp__header-left-menu.button.icon {:on-click on-click} - (ui/icon "menu-2" {:style {:fontSize ui/icon-size}})])) + (ui/icon "menu-2" {:title "Toggle left menu" :style {:fontSize ui/icon-size}})])) (rum/defc dropdown-menu < rum/reactive [{:keys [current-repo t]}] @@ -253,7 +253,7 @@ (mobile-util/native-iphone?)) (state/set-left-sidebar-open! false)) (state/pub-event! [:go/search]))} - (ui/icon "search" {:style {:fontSize ui/icon-size}})]))]) + (ui/icon "search" {:title "Search" :style {:fontSize ui/icon-size}})]))]) (when (mobile-util/native-platform?) (if (or (state/home?) custom-home-page?) left-menu diff --git a/src/main/frontend/components/right_sidebar.cljs b/src/main/frontend/components/right_sidebar.cljs index 652585cf9a..45ea45c0e7 100644 --- a/src/main/frontend/components/right_sidebar.cljs +++ b/src/main/frontend/components/right_sidebar.cljs @@ -26,7 +26,8 @@ (ui/with-shortcut :ui/toggle-right-sidebar "left" [:button.button.icon.fade-link.toggle-right-sidebar {:on-click ui-handler/toggle-right-sidebar!} - (ui/icon "layout-sidebar-right" {:style {:fontSize "20px"}})]))) + (ui/icon "layout-sidebar-right" {:title "Toggle right sidebar" + :style {:fontSize "20px"}})]))) (rum/defc block-cp < rum/reactive [repo idx block]