diff --git a/docs/en_US/release_notes_4_20.rst b/docs/en_US/release_notes_4_20.rst index 71121c32d..653160a3f 100644 --- a/docs/en_US/release_notes_4_20.rst +++ b/docs/en_US/release_notes_4_20.rst @@ -20,6 +20,7 @@ Bug fixes ********* | `Issue #4237 `_ - Fix an issue where the user can not change the value of DateTime picker control using keyboard. +| `Issue #4608 `_ - Fixed some accessibility issues in the dialogs. | `Issue #4942 `_ - Fixed chrome driver download utility issue for Ubuntu. | `Issue #5143 `_ - Fix an accessibility issue to maximize the panel for all alertify dialog. | `Issue #5221 `_ - Improve logic to get the DDL statements as a part of the comparison. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/static/js/fts_configuration.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/static/js/fts_configuration.js index b38ee2cab..ab4838ea5 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/static/js/fts_configuration.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/fts_configurations/static/js/fts_configuration.js @@ -212,7 +212,7 @@ define('pgadmin.node.fts_configuration', [ ' ', '
', '
', - ' ', + ' ', '
', ' ', ' ', diff --git a/web/pgadmin/browser/server_groups/servers/templates/servers/password.html b/web/pgadmin/browser/server_groups/servers/templates/servers/password.html index a41b3f0b1..afdfbfe96 100644 --- a/web/pgadmin/browser/server_groups/servers/templates/servers/password.html +++ b/web/pgadmin/browser/server_groups/servers/templates/servers/password.html @@ -1,9 +1,9 @@
-
+
{{ _('Please enter the password for the user \'{0}\' to connect the server - "{1}"').format(username, + server_label) }}
- +
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index a1c898890..a44d1a83a 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -1581,7 +1581,7 @@ define([ showGridControl: function(data) { var self = this, gridHeader = ['
', - ' ', + ' ' + data.label + '', ' ', '
', ].join('\n'), @@ -2890,41 +2890,40 @@ define([ }, down: function() { + let $el = this.$el.find('.datetimepicker-input'); + let currdate = $el.data('datetimepicker').date().clone(); if (this.$el.find('.datepicker').is(':visible')) { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.add(7, 'd')); } else { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.subtract(1, 'm')); } }, up: function() { + let $el = this.$el.find('.datetimepicker-input'); + let currdate = $el.data('datetimepicker').date().clone(); + if (this.$el.find('.datepicker').is(':visible')) { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.subtract(7, 'd')); } else { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.add(1, 'm')); } }, left: function() { + let $el = this.$el.find('.datetimepicker-input'); + let currdate = $el.data('datetimepicker').date().clone(); + if (this.$el.find('.datepicker').is(':visible')) { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.subtract(1, 'd')); } }, right: function() { + let $el = this.$el.find('.datetimepicker-input'); + let currdate = $el.data('datetimepicker').date().clone(); + if (this.$el.find('.datepicker').is(':visible')) { - let $el = this.$el.find('.datetimepicker-input'); - let currdate = $el.data('datetimepicker').date().clone(); $el.datetimepicker('date', currdate.add(1, 'd')); } }, @@ -3193,7 +3192,7 @@ define([ template: _.template([ '', '
', - ' <%=required ? "required" : ""%> />', + ' <%=required ? "required" : ""%> />', ' <% if (helpMessage && helpMessage.length) { %>', ' <%=helpMessage%>', ' <% } %>', diff --git a/web/pgadmin/static/js/backgrid.pgadmin.js b/web/pgadmin/static/js/backgrid.pgadmin.js index e82da8bec..a64897b20 100644 --- a/web/pgadmin/static/js/backgrid.pgadmin.js +++ b/web/pgadmin/static/js/backgrid.pgadmin.js @@ -698,6 +698,7 @@ define([ $('', { tabIndex: 0, type: 'checkbox', + 'aria-label': gettext('data toggle'), }).prop('checked', rawValue).prop('disabled', !editable).attr('data-toggle', 'toggle') .attr('data-size', options.size).attr('data-on', options.onText).attr('data-off', options.offText) .attr('data-width', options.width).attr('data-height', options.height) diff --git a/web/pgadmin/tools/maintenance/static/js/maintenance.js b/web/pgadmin/tools/maintenance/static/js/maintenance.js index 6cebd3c07..4f1508233 100644 --- a/web/pgadmin/tools/maintenance/static/js/maintenance.js +++ b/web/pgadmin/tools/maintenance/static/js/maintenance.js @@ -6,7 +6,6 @@ // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////// - define([ 'sources/gettext', 'sources/url_for', 'jquery', 'underscore', 'pgadmin.alertifyjs', 'sources/pgadmin', 'pgadmin.browser', 'backbone', @@ -277,6 +276,7 @@ define([ type: 'button', url: 'maintenance.html', label: gettext('Maintenance'), + 'aria-label': gettext('Object Help'), }, }, { text: '', @@ -417,7 +417,6 @@ define([ prepare: function() { // Main maintenance tool dialog container var $container = $('
'); - var t = pgBrowser.tree, i = t.selected(), d = i && i.length == 1 ? t.itemData(i) : undefined, diff --git a/web/pgadmin/tools/restore/static/js/restore_dialog_wrapper.js b/web/pgadmin/tools/restore/static/js/restore_dialog_wrapper.js index 396eab0fe..712d70cbc 100644 --- a/web/pgadmin/tools/restore/static/js/restore_dialog_wrapper.js +++ b/web/pgadmin/tools/restore/static/js/restore_dialog_wrapper.js @@ -38,6 +38,7 @@ export class RestoreDialogWrapper extends DialogWrapper { type: 'button', url: 'backup.html', label: gettext('Restore'), + 'aria-label': gettext('Object Help'), }, }, { text: '',