mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
This commit is contained in:
parent
ab24ee7a7e
commit
d62391c8f1
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue