[gnome-shell] unlockDialog: Set accessible name of icon-only buttons
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] unlockDialog: Set accessible name of icon-only buttons
- Date: Mon, 24 Feb 2020 12:37:28 +0000 (UTC)
commit d62391c8f129b9b9808d6e51cc690004819b0496
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 19 18:06:38 2020 +0100
unlockDialog: Set accessible name of icon-only buttons
We turned both the auth prompt's cancel button and the switch user
button into icon buttons now, which means they are completely cryptic
when using a screen reader.
Just use the previously used labels as accessible names, which has the
nice side effect of lowering the impact of the string freeze break.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2210
js/gdm/authPrompt.js | 1 +
js/ui/unlockDialog.js | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index bab6d5deee..4bcd028aee 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -132,6 +132,7 @@ var AuthPrompt = GObject.registerClass({
this.cancelButton = new St.Button({
style_class: 'modal-dialog-button button cancel-button',
+ accessible_name: _('Cancel'),
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
reactive: this._hasCancelButton,
can_focus: this._hasCancelButton,
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index f894709ffc..14bd972d6a 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -555,6 +555,7 @@ var UnlockDialog = GObject.registerClass({
// Switch User button
this._otherUserButton = new St.Button({
style_class: 'modal-dialog-button button switch-user-button',
+ accessible_name: _('Log in as another user'),
can_focus: true,
reactive: true,
x_align: Clutter.ActorAlign.END,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]