Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit 85d136d

Browse files
author
Denis Krienbühl
committed
Adds 'button' role to more links
1 parent 1ffd5f0 commit 85d136d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

HISTORY.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
---------
33

4+
- Adds 'button' role to more links.
5+
[href]
6+
47
0.40.7 (2018-11-06)
58
~~~~~~~~~~~~~~~~~~~
69

onegov/org/templates/macros.pt

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
</tal:b>
210210
</tal:b>
211211
<tal:b condition="cancel|nothing">
212-
<a class="button secondary cancel-button" href="${cancel}" i18n:translate="">
212+
<a class="button secondary cancel-button" href="${cancel}" i18n:translate="" role="button">
213213
<tal:b condition="not:cancel_text|nothing">
214214
Cancel
215215
</tal:b>
@@ -222,7 +222,7 @@
222222
<input type="submit" value="Submit" class="button" i18n:attributes="value">
223223
</tal:b>
224224
<tal:b condition="button_text|nothing">
225-
<input type="submit" value="${button_text}" class="button">
225+
<input type="submit" value="${button_text}" class="button" role="button">
226226
</tal:b>
227227
</form>
228228
</metal:form>
@@ -1366,7 +1366,7 @@
13661366
</tal:b>
13671367
</div>
13681368
<div class="columns small-2 file-actions">
1369-
<a class="button secondary confirm delete"
1369+
<a class="button secondary confirm delete" role="button"
13701370
ic-delete-from="${request.link(file)}?csrf-token=${layout.csrf_token}"
13711371
ic-on-success="
13721372
var info = $(elt).closest('tr');
@@ -1382,7 +1382,7 @@
13821382
i18n:translate>
13831383
Delete
13841384
</a>
1385-
<a class="button secondary rename prompt"
1385+
<a class="button secondary rename prompt" role="button"
13861386
data-prompt="Please provide the new name for the file"
13871387
data-prompt-ok="Rename"
13881388
data-prompt-cancel="Cancel"

0 commit comments

Comments
 (0)