Fixed some accessibility issues:

1) Added missing search filter label in backgrid.
  2) broken aria issue for objects menu.
pull/29/head
Vishal Sawale 2020-04-03 17:11:46 +05:30 committed by Akshay Joshi
parent 824e3866d8
commit 99a72e529b
2 changed files with 5 additions and 1 deletions

View File

@ -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() {},

View File

@ -1957,6 +1957,10 @@ define([
*/
Backgrid.Extension.ClientSideFilter = Backgrid.Extension.ClientSideFilter.extend({
$customSearchBox: null,
template: function (data) {
return '<span class="search">&nbsp;</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="#">&times;</a>';
},
searchBox: function() {
if(this.$customSearchBox) {