Skip to content

Commit

Permalink
fix(web): add missing tooltips for expand/reduce buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Dec 3, 2021
1 parent e064e9a commit 1febace
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/Common/English.lproj/Localizable.strings
Expand Up @@ -41,6 +41,8 @@
= "Potentially anyone on the Internet will be able to access your address book \"%{0}\", even if they do not have an account on this system. Is this information suitable for the public Internet?";
"Give Access" = "Give Access";
"Keep Private" = "Keep Private";
"Expand" = "Expand";
"Reduce" = "Reduce";

/* generic.js */
"Unable to subscribe to that folder!"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/ContactsUI/UIxContactEditorTemplate.wox
Expand Up @@ -13,6 +13,8 @@
<md-button ng-click="toggleCenter()"
class="sg-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-icon class="material-icons sg-icon-toolbar-bg">contacts</md-icon>
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/ContactsUI/UIxContactViewTemplate.wox
Expand Up @@ -13,6 +13,8 @@
<md-button ng-click="toggleCenter()"
class="sg-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="sg-icon-button hide-gt-xs"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/MailerUI/UIxMailEditor.wox
Expand Up @@ -22,6 +22,8 @@
class="md-icon-button hide show-gt-xs"
aria-hidden="true"
ng-if="!isPopup">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ editor.isFullscreen ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<!-- from -->
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/MailerUI/UIxMailViewTemplate.wox
Expand Up @@ -15,6 +15,8 @@
class="md-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true"
ng-if="::!isPopup">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="md-icon-button"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/SchedulerUI/UIxCalDayView.wox
Expand Up @@ -12,6 +12,8 @@
<md-button ng-click="toggleCenter({save: true})"
class="md-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="sg-icon-button"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/SchedulerUI/UIxCalMonthView.wox
Expand Up @@ -12,6 +12,8 @@
<md-button ng-click="toggleCenter({save: true})"
class="md-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="md-icon-button"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/SchedulerUI/UIxCalMulticolumnDayView.wox
Expand Up @@ -12,6 +12,8 @@
<md-button ng-click="toggleCenter({save: true})"
class="md-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="md-icon-button"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/SchedulerUI/UIxCalWeekView.wox
Expand Up @@ -12,6 +12,8 @@
<md-button ng-click="toggleCenter({save: true})"
class="md-icon-button md-primary md-hue-1 hide show-gt-xs"
aria-hidden="true">
<md-tooltip ng-if="centerIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="centerIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button class="md-icon-button"
Expand Down
2 changes: 2 additions & 0 deletions UI/Templates/UIxTopnavToolbar.wox
Expand Up @@ -9,6 +9,8 @@
<md-button ng-click="toggleLeft()"
class="md-icon-button hide show-gt-md"
label:aria-label="Toggle Menu">
<md-tooltip ng-if="leftIsClose" md-direction="bottom">{{ ::'Reduce' | loc }}</md-tooltip>
<md-tooltip ng-else="leftIsClose" md-direction="bottom">{{ ::'Expand' | loc }}</md-tooltip>
<md-icon>{{ leftIsClose ? 'fullscreen_exit' : 'fullscreen' }}</md-icon>
</md-button>
<md-button ng-click="toggleLeft()"
Expand Down

0 comments on commit 1febace

Please sign in to comment.