diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-24 00:08:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-24 00:08:58 +0300 |
commit | 78f935d56652eee385683bf7a55c3b9a86a63a0e (patch) | |
tree | 237af4537bdfad4371db92902dbf1f200cb12b63 /app/helpers | |
parent | f986ce9ffa56e25d0a3010c78d9481664742d766 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/button_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb index ea24f469ffa..1b00f583b55 100644 --- a/app/helpers/button_helper.rb +++ b/app/helpers/button_helper.rb @@ -25,6 +25,7 @@ module ButtonHelper button_text = data[:button_text] || '' hide_tooltip = data[:hide_tooltip] || false hide_button_icon = data[:hide_button_icon] || false + item_prop = data[:itemprop] || nil # This supports code in app/assets/javascripts/copy_to_clipboard.js that # works around ClipboardJS limitations to allow the context-specific copy/pasting of plain text or GFM. @@ -49,7 +50,8 @@ module ButtonHelper data: data, type: :button, title: title, - aria: { label: title } + aria: { label: title }, + itemprop: item_prop } content_tag :button, button_attributes do |