|
92 | 92 | </a> |
93 | 93 | <% end %> |
94 | 94 |
|
95 | | - <a class="al-trigger btn"> |
96 | | - <span class="screenreader-only"><%= t(:manage, "Manage") %></span> |
| 95 | + <a class="al-trigger btn" role="button" aria-haspopup="true" aria-owns="toolbar-1" tabindex="-1"> |
97 | 96 | <i class="icon-settings"></i> |
98 | 97 | <i class="icon-mini-arrow-down"></i> |
| 98 | + <span class="screenreader-only"><%= t(:manage, "Manage") %></span> |
99 | 99 | </a> |
100 | | - <ul class="al-options"> |
| 100 | + <ul id="toolbar-1" class="al-options" role="menu" tabindex="0" aria-hidden="true" aria-expanded="false"> |
101 | 101 | <% if can_do(@quiz, @current_user, :update) && @assignment %> |
102 | | - <li> |
103 | | - <a href="#" rel="<%= context_url(@context, :context_assignment_rubric_url, @assignment.id) %>" class="show_rubric_link"> |
| 102 | + <li role="presentation"> |
| 103 | + <a href="#" rel="<%= context_url(@context, :context_assignment_rubric_url, @assignment.id) %>" class="show_rubric_link" tabindex="-1" role="menuitem"> |
104 | 104 | <i class="icon-rubric"></i> |
105 | 105 | <%= t('links.show_assignment_rubric', "Show Rubric") %> |
106 | 106 | </a> |
|
109 | 109 | <% end %> |
110 | 110 |
|
111 | 111 | <% if can_do(@quiz, @current_user, :update) && !needs_unpublished_warning? %> |
112 | | - <li> |
113 | | - <a href="<%= polymorphic_path([@context, @quiz, :take], :preview => 1) %>" class="preview_link" data-method="post"> |
| 112 | + <li role="presentation"> |
| 113 | + <a href="<%= polymorphic_path([@context, @quiz, :take], :preview => 1) %>" class="preview_link" data-method="post" tabindex="-1" role="menuitem"> |
114 | 114 | <i class="icon-quiz"></i> |
115 | 115 | <%= t('links.preview', "Preview") %> |
116 | 116 | </a> |
|
133 | 133 | </label> |
134 | 134 | </div> |
135 | 135 | <% end %> |
136 | | - <li> |
137 | | - <a href="#" id="let_students_take_this_quiz_button"> |
| 136 | + <li role="presentation"> |
| 137 | + <a href="#" id="let_students_take_this_quiz_button" tabindex="-1" role="menuitem"> |
138 | 138 | <i class="icon-unlock"></i> <%= @quiz.survey? ? t('buttons.unlock_survey', "Let Students Take this Survey Now") : t('buttons.unlock_quiz', "Let Students Take this Quiz Now") %> |
139 | 139 | </a> |
140 | 140 | </li> |
141 | 141 | <% else %> |
142 | 142 | <% form_for @quiz, :url => context_url(@context, :context_quiz_url, @quiz.id), :html => { :id => 'quiz_lock_form' } do |f| %> |
143 | 143 | <%= hidden_field_tag 'quiz[locked]', true %> |
144 | 144 | <% end %> |
145 | | - <li> |
146 | | - <a href="#" id="lock_this_quiz_now_link"> |
| 145 | + <li role="presentation"> |
| 146 | + <a href="#" id="lock_this_quiz_now_link" tabindex="-1" role="menuitem"> |
147 | 147 | <i class="icon-lock"></i> <%= @quiz.survey? ? t('buttons.lock_survey', "Lock this Survey Now") : t('buttons.lock_quiz', "Lock this Quiz Now") %> |
148 | 148 | </a> |
149 | 149 | </li> |
150 | 150 | <% end %> |
151 | 151 | <% end %> |
152 | 152 |
|
153 | 153 | <% if (can_do(@quiz, @current_user, :grade) || can_do(@quiz, @current_user, :review_grades)) && @quiz.available? %> |
154 | | - <li> |
155 | | - <a href="#" class="quiz_details_link"> |
| 154 | + <li role="presentation"> |
| 155 | + <a href="#" class="quiz_details_link" tabindex="-1" role="menuitem"> |
156 | 156 | <% if @any_submissions_pending_review %> |
157 | 157 | <i class="icon-warning"></i> |
158 | 158 | <% end %> |
|
166 | 166 | <% end %> |
167 | 167 |
|
168 | 168 | <% if can_do(@quiz, @current_user, :grade) && can_do(@context, @current_user, :send_messages) && @quiz.available? && !@quiz.anonymous_submissions? && @quiz.graded? %> |
169 | | - <li> |
170 | | - <a href="#" class="message_students_link"> |
| 169 | + <li role="presentation"> |
| 170 | + <a href="#" class="message_students_link" tabindex="-1" role="menuitem"> |
171 | 171 | <i class="icon-email"></i> <%= t('links.message_students_who', "Message Students Who...") %> |
172 | 172 | </a> |
173 | 173 | </li> |
174 | 174 | <% end %> |
175 | 175 |
|
176 | | - <li> |
177 | | - <a href="<%= context_url(@context, :context_quiz_url, @quiz) %>" class="delete_quiz_link"> |
| 176 | + <li role="presentation"> |
| 177 | + <a href="<%= context_url(@context, :context_quiz_url, @quiz) %>" class="delete_quiz_link" tabindex="-1" role="menuitem"> |
178 | 178 | <i class="icon-trash"></i> <%= t('titles.delete', "Delete") %> |
179 | 179 | </a> |
180 | 180 | </li> |
|
0 commit comments