summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-03-02 10:02:16 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-05-25 14:47:51 -0500
commit65f4c0624c924ec15a380b49ff4405e855795c79 (patch)
tree963efef794dda22f585f01423282fdf26a762d5b
parent6a279ed892260483a5942d8b7cb09186368bdaaa (diff)
downloadgitlab-ce-65f4c0624c924ec15a380b49ff4405e855795c79.tar.gz
Change toggle to a tag to add focus style on tab but not on click
-rw-r--r--app/views/projects/boards/components/sidebar/_notifications.html.haml2
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/boards/components/sidebar/_notifications.html.haml b/app/views/projects/boards/components/sidebar/_notifications.html.haml
index 6de3873eb48..05fae35245e 100644
--- a/app/views/projects/boards/components/sidebar/_notifications.html.haml
+++ b/app/views/projects/boards/components/sidebar/_notifications.html.haml
@@ -2,6 +2,6 @@
.block.light.subscription{ ":data-url" => "'#{namespace_project_issues_path(@project.namespace, @project)}/' + issue.id + '/toggle_subscription'" }
%span.toggle-text.hide-collapsed.pull-left
Notifications
- %button.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button" }
+ %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button", href: "#" }
%span.subscription-label
{{issue.subscribed ? 'Unsubscribe' : 'Subscribe'}}
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 799e24bc55f..f089cd64c8e 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -123,7 +123,7 @@
= icon('rss', 'aria-hidden': 'true')
%span.toggle-text.hide-collapsed.pull-left
Notifications
- %button.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button" , class: (subscribed ? "subscribed" : "unsubscribed") }
+ %a.btn.toggle-button.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed{ type: "button" , href: "#", class: (subscribed ? "subscribed" : "unsubscribed") }
%span.subscription-label= subscribed ? 'Unsubscribe' : 'Subscribe'
- project_ref = cross_project_reference(@project, issuable)