[gnome-text-editor: 1/2] Make the menu buttons more accessible by introducing proper a11y labels




commit c6ce9ac4b463314f294a0bbd437aa9825e7954be
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date:   Mon Sep 20 10:24:55 2021 +0200

    Make the menu buttons more accessible by introducing proper a11y labels

 src/editor-theme-selector.ui | 6 ++++++
 src/editor-window.ui         | 9 +++++++++
 2 files changed, 15 insertions(+)
---
diff --git a/src/editor-theme-selector.ui b/src/editor-theme-selector.ui
index ebc5996..227196c 100644
--- a/src/editor-theme-selector.ui
+++ b/src/editor-theme-selector.ui
@@ -16,6 +16,9 @@
             <property name="action-name">settings.style-variant</property>
             <property name="action-target">'light'</property>
             <property name="tooltip-text" translatable="yes">Light style</property>
+            <accessibility>
+              <property name="label" translatable="yes">Light style</property>
+            </accessibility>
           </object>
         </child>
         <child>
@@ -29,6 +32,9 @@
             <property name="action-name">settings.style-variant</property>
             <property name="action-target">'dark'</property>
             <property name="tooltip-text" translatable="yes">Dark style</property>
+            <accessibility>
+              <property name="label" translatable="yes">Dark style</property>
+            </accessibility>
           </object>
         </child>
       </object>
diff --git a/src/editor-window.ui b/src/editor-window.ui
index 1d0b2f2..50cc3a4 100644
--- a/src/editor-window.ui
+++ b/src/editor-window.ui
@@ -73,6 +73,9 @@
                     <property name="icon-name">tab-new-symbolic</property>
                     <property name="has-tooltip">true</property>
                     <property name="tooltip-text" translatable="yes">New tab (Ctrl+T)</property>
+                    <accessibility>
+                      <property name="label" translatable="yes">New tab (Ctrl+T)</property>
+                    </accessibility>
                   </object>
                 </child>
               </object>
@@ -99,11 +102,17 @@
                   <object class="GtkMenuButton" id="options_menu">
                     <property name="tooltip-text" translatable="yes">View</property>
                     <property name="icon-name">document-properties-symbolic</property>
+                    <accessibility>
+                      <property name="label" translatable="yes">View</property>
+                    </accessibility>
                   </object>
                 </child>
                 <child>
                   <object class="GtkMenuButton" id="primary_menu">
                     <property name="icon-name">open-menu-symbolic</property>
+                    <accessibility>
+                      <property name="label" translatable="yes">Menu</property>
+                    </accessibility>
                   </object>
                 </child>
               </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]