File: ui-Fix-wrong-a11y-role-in-button.patch

package info (click to toggle)
malcontent 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,756 kB
  • sloc: ansic: 7,414; python: 418; xml: 377; sh: 36; makefile: 14
file content (27 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Sergio Costas Rodriguez <sergio.costas@canonical.com>
Date: Tue, 1 Jul 2025 11:24:30 +0200
Subject: ui: Fix wrong a11y role in button

The `Restrict Applications` button lacks the corresponding role,
so an user using a screen reader won't be able to know that they
can push it to expand the list of applications.

This patch fixes this by setting the right a11y role.

(cherry picked from commit 858e67ad851e04d52de5c721f56cc217faa319b8)
---
 libmalcontent-ui/user-controls.ui | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmalcontent-ui/user-controls.ui b/libmalcontent-ui/user-controls.ui
index d469d7f..55912eb 100644
--- a/libmalcontent-ui/user-controls.ui
+++ b/libmalcontent-ui/user-controls.ui
@@ -47,6 +47,7 @@
 
             <child>
               <object class="AdwActionRow" id="restrict_applications_row">
+                <property name="accessible-role">button</property>
                 <property name="activatable">True</property>
                 <property name="title" translatable="yes">_Restrict Applications</property>
                 <property name="use_underline">True</property>