summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-28 19:28:58 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-28 19:28:58 +0000
commit85f493390a9e5ce7cce2c7936e1e91c8327e83d5 (patch)
tree8c64a1cef808be03f98402baf5d085b1508505aa /app/helpers
parent261f5a68edc37eca25b9f49f2d3d75261bd794a7 (diff)
downloadgitlab-ce-85f493390a9e5ce7cce2c7936e1e91c8327e83d5.tar.gz
Improve a11y in sidebar
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/button_helper.rb2
-rw-r--r--app/helpers/issuables_helper.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb
index 195094730aa..0b30471f2ae 100644
--- a/app/helpers/button_helper.rb
+++ b/app/helpers/button_helper.rb
@@ -19,7 +19,7 @@ module ButtonHelper
title = data[:title] || 'Copy to clipboard'
data = { toggle: 'tooltip', placement: 'bottom', container: 'body' }.merge(data)
content_tag :button,
- icon('clipboard'),
+ icon('clipboard', 'aria-hidden': 'true'),
class: "btn #{css_class}",
data: data,
type: :button,
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 860a665ae26..be3fcdd4a54 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -1,6 +1,6 @@
module IssuablesHelper
def sidebar_gutter_toggle_icon
- sidebar_gutter_collapsed? ? icon('angle-double-left') : icon('angle-double-right')
+ sidebar_gutter_collapsed? ? icon('angle-double-left', {'aria-hidden': 'true'}) : icon('angle-double-right', {'aria-hidden': 'true'})
end
def sidebar_gutter_collapsed_class