Skip to content

Commit

Permalink
[wcag] Add aria labels to resource reordering handles and alter view …
Browse files Browse the repository at this point in the history
…handles

The labels I added in a previous commit on the view handles could have been better,
and now they are.
  • Loading branch information
jrdh committed Sep 10, 2020
1 parent def81ef commit a89b60f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ckan/public/base/javascript/modules/resource-reorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ this.ckan.module('resource-reorder', function($) {
].join('\n'),
form_actions: [
'<div class="form-actions">',
'<a href="javascript:;" class="cancel btn btn-danger pull-left"></a>',
'<a href="javascript:;" class="save btn btn-primary"></a>',
'<a href="javascript:;" class="cancel btn btn-danger pull-left" aria-label="Cancel"></a>',
'<a href="javascript:;" class="save btn btn-primary" aria-label="Save changes"></a>',
'</div>'
].join('\n'),
handle: [
'<a href="javascript:;" class="handle">',
'<a href="javascript:;" class="handle" aria-label="Click and drag this to move the resource up or down in the list">',
'<i class="fa fa-arrows"></i>',
'</a>'
].join('\n'),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ckan/public/base/javascript/modules/resource-view-reorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ this.ckan.module('resource-view-reorder', function($) {
].join('\n'),
form_actions: [
'<div class="form-actions">',
'<a href="javascript:;" class="cancel btn btn-danger pull-left"></a>',
'<a href="javascript:;" class="save btn btn-primary"></a>',
'<a href="javascript:;" class="cancel btn btn-danger pull-left" aria-label="Cancel"></a>',
'<a href="javascript:;" class="save btn btn-primary" aria-label="Save changes"></a>',
'</div>'
].join('\n'),
handle: [
'<a href="javascript:;" class="handle" aria-label="Move view">',
'<a href="javascript:;" class="handle" aria-label="Click and drag this to move the view up or down in the list">',
'<i class="fa fa-arrows"></i>',
'</a>'
].join('\n'),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a89b60f

Please sign in to comment.