Fixed some accessibility issues:
1) Added missing search filter label in backgrid. 2) broken aria issue for objects menu.pull/29/head
parent
824e3866d8
commit
99a72e529b
|
@ -372,7 +372,7 @@ define('pgadmin.browser', [
|
|||
// Create a dummy 'no object seleted' menu
|
||||
var create_submenu = pgAdmin.Browser.MenuGroup(
|
||||
obj.menu_categories['create'], [{
|
||||
$el: $('<li><a class="dropdown-item disabled" href="#">' + gettext('No object selected') + '</a></li>'),
|
||||
$el: $('<li><a class="dropdown-item disabled" href="#" role="menuitem">' + gettext('No object selected') + '</a></li>'),
|
||||
priority: 1,
|
||||
category: 'create',
|
||||
update: function() {},
|
||||
|
|
|
@ -1957,6 +1957,10 @@ define([
|
|||
*/
|
||||
Backgrid.Extension.ClientSideFilter = Backgrid.Extension.ClientSideFilter.extend({
|
||||
$customSearchBox: null,
|
||||
template: function (data) {
|
||||
return '<span class="search"> </span><input type="search" ' + (data.placeholder ? 'aria-label= "' + data.placeholder + '"' : '')+' '+ (data.placeholder ? 'placeholder="' +
|
||||
data.placeholder + '"' : '') + ' name="' + data.name + '" ' + (data.value ? 'value="' + data.value + '"' : '') + '/><a class="clear" data-backgrid-action="clear" href="#">×</a>';
|
||||
},
|
||||
|
||||
searchBox: function() {
|
||||
if(this.$customSearchBox) {
|
||||
|
|
Loading…
Reference in New Issue