diff --git a/web/pgadmin/browser/static/js/toolbar.js b/web/pgadmin/browser/static/js/toolbar.js index 75653ad..ff7c732 100644 --- a/web/pgadmin/browser/static/js/toolbar.js +++ b/web/pgadmin/browser/static/js/toolbar.js @@ -18,6 +18,7 @@ let _browserPanel = null; let _defaultToolBarButtons = [ { label: gettext('Filtered Rows'), + ariaLabel: gettext('Filtered Rows'), btnClass: 'pg-font-icon icon-filter-table-toolbar', text: '', toggled: false, @@ -27,6 +28,7 @@ let _defaultToolBarButtons = [ }, { label: gettext('View Data'), + ariaLabel: gettext('View Data'), btnClass: 'fa fa-table', text: '', toggled: false, @@ -36,6 +38,7 @@ let _defaultToolBarButtons = [ }, { label: gettext('Query Tool'), + ariaLabel: gettext('Query Tool'), btnClass: 'pg-font-icon icon-query-tool', text: '', toggled: false, @@ -57,7 +60,7 @@ function registerToolBarButton(btn) { || (_.findIndex(_browserPanel._buttonList,{name:btn.label}) < 0)) { _browserPanel.addButton( btn.label, btn.btnClass, btn.text, btn.label, btn.toggled, - btn.toggleClass, btn.parentClass, btn.enabled + btn.toggleClass, btn.parentClass, btn.enabled, btn.ariaLabel ); _toolbarButtons[btn.label] = btn; diff --git a/web/pgadmin/browser/static/js/wizard.js b/web/pgadmin/browser/static/js/wizard.js index 1576021..de7032c 100644 --- a/web/pgadmin/browser/static/js/wizard.js +++ b/web/pgadmin/browser/static/js/wizard.js @@ -82,10 +82,10 @@ define([ ' ' + ' <% if (this.options.show_header_cancel_btn) { %>' + '
' + - ' ' + ' <% if (this.options.show_header_maximize_btn) { %>' + - ' ' + ' <% } %>' + '
' + @@ -121,14 +121,14 @@ define([ ' ' + '
' + '
' + - ' ' + + ' ' + '
' + ' ' + ' ' + ' ' + '
' + '
' + - ' ' + '
' + diff --git a/web/pgadmin/preferences/static/js/preferences.js b/web/pgadmin/preferences/static/js/preferences.js index 16d4a29..08d5a68 100644 --- a/web/pgadmin/preferences/static/js/preferences.js +++ b/web/pgadmin/preferences/static/js/preferences.js @@ -424,6 +424,7 @@ define('pgadmin.preferences', [ name: 'dialog_help', type: 'button', label: gettext('Preferences'), + 'aria-label': gettext('Help'), url: url_for( 'help.static', { 'filename': 'preferences.html', diff --git a/web/pgadmin/static/js/alertify.pgadmin.defaults.js b/web/pgadmin/static/js/alertify.pgadmin.defaults.js index 78ffb21..4d78ce3 100644 --- a/web/pgadmin/static/js/alertify.pgadmin.defaults.js +++ b/web/pgadmin/static/js/alertify.pgadmin.defaults.js @@ -260,6 +260,8 @@ define([ this.elements.dialog.classList.add('pg-el-container'); $(this.elements.commands.close).attr('title', gettext('Close')); $(this.elements.commands.maximize).attr('title', gettext('Maximize')); + $(this.elements.commands.close).attr('aria-label', gettext('Close')); + $(this.elements.commands.maximize).attr('aria-label', gettext('Maximize')); alertifyDialogResized.apply(this, arguments); }); this.set('onresize', alertifyDialogStartResizing.bind(this, true)); diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index eb08212..93aaa91 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -1257,7 +1257,7 @@ define([ gridHeader = _.template([ '
', ' ', - ' ', + ' ', '
', ].join('\n')), gridBody = $('
').append( @@ -1547,7 +1547,7 @@ define([ var self = this, gridHeader = ['
', ' ', - ' ', + ' ', '
', ].join('\n'), gridBody = $('
').append(gridHeader); diff --git a/web/pgadmin/static/js/backgrid.pgadmin.js b/web/pgadmin/static/js/backgrid.pgadmin.js index 52bcbd9..b72d724 100644 --- a/web/pgadmin/static/js/backgrid.pgadmin.js +++ b/web/pgadmin/static/js/backgrid.pgadmin.js @@ -555,7 +555,7 @@ define([ var self = this; this.$el.empty(); $(this.$el).attr('tabindex', 0); - this.$el.html(''); + this.$el.html(''); // Listen for Tab/Shift-Tab key this.$el.on('keydown', function(e) { // with keyboard navigation on space key, mark row for deletion diff --git a/web/pgadmin/static/js/sqleditor/filter_dialog.js b/web/pgadmin/static/js/sqleditor/filter_dialog.js index 92ee6e0..a59c43f 100644 --- a/web/pgadmin/static/js/sqleditor/filter_dialog.js +++ b/web/pgadmin/static/js/sqleditor/filter_dialog.js @@ -70,6 +70,7 @@ let FilterDialog = { name: 'dialog_help', type: 'button', label: gettext('Help'), + 'aria-label': gettext('Help'), url: url_for('help.static', { 'filename': 'editgrid.html', }), diff --git a/web/pgadmin/tools/backup/static/js/backup_dialog_wrapper.js b/web/pgadmin/tools/backup/static/js/backup_dialog_wrapper.js index dd92f61..078792d 100644 --- a/web/pgadmin/tools/backup/static/js/backup_dialog_wrapper.js +++ b/web/pgadmin/tools/backup/static/js/backup_dialog_wrapper.js @@ -53,6 +53,7 @@ export class BackupDialogWrapper extends DialogWrapper { name: 'dialog_help', type: 'button', label: gettext('Backup'), + 'aria-label': gettext('Help'), url: url_for('help.static', { 'filename': get_help_file(this.typeOfDialog), }), diff --git a/web/pgadmin/tools/datagrid/static/js/show_data.js b/web/pgadmin/tools/datagrid/static/js/show_data.js index 5049710..0f4a806 100644 --- a/web/pgadmin/tools/datagrid/static/js/show_data.js +++ b/web/pgadmin/tools/datagrid/static/js/show_data.js @@ -130,6 +130,7 @@ function initFilterDialog(alertify, pgBrowser) { name: 'dialog_help', type: 'button', label: gettext('Data Filter'), + 'aria-label': gettext('Help'), url: url_for('help.static', { 'filename': 'viewdata_filter.html', }), diff --git a/web/pgadmin/tools/datagrid/templates/datagrid/index.html b/web/pgadmin/tools/datagrid/templates/datagrid/index.html index 77f8f31..621d88d 100644 --- a/web/pgadmin/tools/datagrid/templates/datagrid/index.html +++ b/web/pgadmin/tools/datagrid/templates/datagrid/index.html @@ -53,7 +53,7 @@
-