summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-08-31 20:58:58 -0500
committerMike Greiling <mike@pixelcog.com>2016-08-31 20:58:58 -0500
commit91c215f9a7c5f1bd33eee4d8587bc80a92863071 (patch)
tree161128050ae505ea6fddf7a1c7ee4f5b7e7e7bbf /app/helpers
parent1c4e866348e0c782d2e5374209508785ac812c7a (diff)
downloadgitlab-ce-91c215f9a7c5f1bd33eee4d8587bc80a92863071.tar.gz
make projects dropdown accessible
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index f07077bd133..7a90a0bb465 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -61,7 +61,9 @@ module ProjectsHelper
project_link = link_to simple_sanitize(project.name), project_path(project), { class: "project-item-select-holder" }
if current_user
- project_link << icon("chevron-down", class: "dropdown-toggle-caret js-projects-dropdown-toggle", aria: { label: "Toggle switch project dropdown" }, data: { target: ".js-dropdown-menu-projects", toggle: "dropdown" })
+ project_link << button_tag(type: 'button', class: "dropdown-toggle-caret js-projects-dropdown-toggle", aria: { label: "Toggle switch project dropdown" }, data: { target: ".js-dropdown-menu-projects", toggle: "dropdown" }) do
+ icon("chevron-down")
+ end
end
full_title = "#{namespace_link} / #{project_link}".html_safe