From e5e427a315d78f1176f12b2f6a2f7014670bf2a6 Mon Sep 17 00:00:00 2001 From: Automeris naranja Date: Thu, 15 Feb 2024 03:49:35 -0300 Subject: [PATCH] calendar: Add a11y label to the "Clear" button The button that clear notifications is labeled as "Clear". When using a screen reader, this label doesn't provide enough context about the action that will happen. Fix that by adding an a11y label to this button. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7398 Part-of: --- js/ui/calendar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index c43290ac7..d2c49fbb7 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -967,6 +967,7 @@ class CalendarMessageList extends St.Widget { can_focus: true, x_expand: true, x_align: Clutter.ActorAlign.END, + accessible_name: C_('action', 'Clear all notifications'), }); this._clearButton.connect('clicked', () => { this._sectionList.get_children().forEach(s => s.clear());