Skip to content

Commit 759b926

Browse files
committed
Add a few more
1 parent 8ff5eb0 commit 759b926

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<% if card.golden? %>
2-
<%= button_to card_goldness_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip" } do %>
2+
<%= button_to card_goldness_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip hotkey", action: "keydown.shift+g@document->hotkey#click" } do %>
33
<%= icon_tag "golden-ticket" %>
4-
<span class="for-screen-reader">Demote to normal</span>
4+
<span class="for-screen-reader">Demote to normal (shift+g)</span>
55
<% end %>
66
<% else %>
7-
<%= button_to card_goldness_path(card), class: "btn", data: { controller: "tooltip" } do %>
7+
<%= button_to card_goldness_path(card), class: "btn", data: { controller: "tooltip hotkey", action: "keydown.shift+g@document->hotkey#click" } do %>
88
<%= icon_tag "golden-ticket" %>
9-
<span class="for-screen-reader">Promote to golden</span>
9+
<span class="for-screen-reader">Promote to golden (shift+g)</span>
1010
<% end %>
1111
<% end %>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div id="<%= dom_id(card, :pin_button) %>">
22
<% if card.pinned_by? Current.user %>
3-
<%= button_to card_pin_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip" } do %>
4-
<%= icon_tag "pinned" %> <span class="for-screen-reader">Un-pin this card</span>
3+
<%= button_to card_pin_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip hotkey", action: "keydown.shift+p@document->hotkey#click" } do %>
4+
<%= icon_tag "pinned" %> <span class="for-screen-reader">Un-pin this card (shift+p)</span>
55
<% end %>
66
<% else %>
7-
<%= button_to card_pin_path(card), class: "btn", data: { controller: "tooltip" } do %>
8-
<%= icon_tag "unpinned" %> <span class="for-screen-reader">Pin this card</span>
7+
<%= button_to card_pin_path(card), class: "btn", data: { controller: "tooltip hotkey", action: "keydown.shift+p@document->hotkey#click" } do %>
8+
<%= icon_tag "unpinned" %> <span class="for-screen-reader">Pin this card (shift+p)</span>
99
<% end %>
1010
<% end %>
1111
</div>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div id="<%= dom_id(card, :watch_button) %>">
22
<% if card.watched_by? Current.user %>
3-
<%= button_to card_watch_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip" } do %>
3+
<%= button_to card_watch_path(card), method: :delete, class: "btn btn--reversed", data: { controller: "tooltip hotkey", action: "keydown.shift+n@document->hotkey#click" } do %>
44
<%= icon_tag "bell" %>
5-
<span class="for-screen-reader">Stop watching</span>
5+
<span class="for-screen-reader">Stop watching (shift+n)</span>
66
<% end %>
77
<% else %>
8-
<%= button_to card_watch_path(card), class: "btn", data: { controller: "tooltip" } do %>
8+
<%= button_to card_watch_path(card), class: "btn", data: { controller: "tooltip hotkey", action: "keydown.shift+n@document->hotkey#click" } do %>
99
<%= icon_tag "bell-off" %>
10-
<span class="for-screen-reader">Watch this</span>
10+
<span class="for-screen-reader">Watch this (shift+n)</span>
1111
<% end %>
1212
<% end %>
1313
</div>

0 commit comments

Comments
 (0)