From 34e4166dc5f24519b000de66853d5b1aee8f1648 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 17 Jun 2014 11:39:18 +0100 Subject: [PATCH] Add label and title for show/hide sidebar buttons More fixes for #650 --- core/language/en-GB/Buttons.multids | 4 ++++ core/ui/TopRightBar/menu.tid | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 39adfe081..cba6e054f 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -20,3 +20,7 @@ Save/Caption: save Save/Hint: Save this tiddler SaveWiki/Caption: save changes SaveWiki/Hint: Save changes +HideSideBar/Caption: hide sidebar +HideSideBar/Hint: Hide sidebar +ShowSideBar/Caption: show sidebar +ShowSideBar/Hint: Show sidebar diff --git a/core/ui/TopRightBar/menu.tid b/core/ui/TopRightBar/menu.tid index 324ba9190..2ce068e9b 100644 --- a/core/ui/TopRightBar/menu.tid +++ b/core/ui/TopRightBar/menu.tid @@ -2,8 +2,8 @@ title: $:/core/ui/TopBar/menu tags: $:/tags/TopRightBar <$reveal state="$:/state/sidebar" type="nomatch" text="no"> -<$button set="$:/state/sidebar" setTo="no" class="btn-invisible">{{$:/core/images/chevron-right}} +<$button set="$:/state/sidebar" setTo="no" title={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="btn-invisible">{{$:/core/images/chevron-right}} <$reveal state="$:/state/sidebar" type="match" text="no"> -<$button set="$:/state/sidebar" setTo="yes" class="btn-invisible">{{$:/core/images/chevron-left}} +<$button set="$:/state/sidebar" setTo="yes" title={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="btn-invisible">{{$:/core/images/chevron-left}}