Accessibility: Turned discussion edit button into button for SR users

Fixes CNVS-13971

Test plan:
- Visit a discussion with edit privileges
- Using a screen reader, verify that the edit button is reported as being a
  button

Change-Id: Ie89a3595d33f14fbb990dc2f8140216d5a08bfe2
Reviewed-on: https://gerrit.instructure.com/38469
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jayce Higgins <jhiggins@instructure.com>
Product-Review: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: David Josse <david@instructure.com>
This commit is contained in:
Aaron Cannon 2014-07-30 16:26:02 -05:00 committed by David Josse
parent 57b9247488
commit 69d209a141
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@
<a href="<%= context_url(@topic.context,
:edit_context_discussion_topic_url,
@topic) %>"
class="btn edit-btn">
<i class="icon-edit" aria-hidden="hidden"></i>
class="btn edit-btn" role="button">
<i class="icon-edit" aria-hidden="true"></i>
<%= t(:edit, 'Edit') %>
</a>
<% end %>