diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-05-08 17:58:00 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-05-09 15:40:37 +0200 |
commit | e1b8d1595ded1ad4da27339060b55283024c2698 (patch) | |
tree | 8d928a0f3cc13f1d70a71a693ca92aa452c8a0e3 /svx | |
parent | 65e09958920057b3a15d38dcb2e26e752f42179c (diff) |
svx: a11y check entry box - provide accessible name and description
If the accessible name and description is not set in the .ui file,
the code will look into help for accessible description, which will
always return an empty string as the widgets are added dynamically.
Searching in help takes some time (2ms), which can add up and is
"felt" in accessibility check sidebar in online when the documents
has a lot of accessibility issues (it can add up to seconds). To
avoid this cost and for better accessibility info, it is better
to provide some general description for this widgets.
Change-Id: I91c5a091781532068c517be937d225fc9345dc5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167346
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 31b3d5a1062366a7ab0cf0fa42359b90d1ed3c4b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167316
Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r-- | svx/uiconfig/ui/accessibilitycheckentry.ui | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/svx/uiconfig/ui/accessibilitycheckentry.ui b/svx/uiconfig/ui/accessibilitycheckentry.ui index f5b79bd9a203..a565b4089fcf 100644 --- a/svx/uiconfig/ui/accessibilitycheckentry.ui +++ b/svx/uiconfig/ui/accessibilitycheckentry.ui @@ -21,6 +21,8 @@ <property name="xalign">0</property> <child internal-child="accessible"> <object class="AtkObject" id="accessibilityCheckEntryLabel-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryLabel - Acessible Name">Document accessibility issue text label</property> + <property name="AtkObject::accessible-description" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryLabel - Acessible Description">This is a document accessibility issue text label, which describes the issue.</property> <property name="AtkObject::accessible-role">static</property> </object> </child> @@ -38,6 +40,12 @@ <property name="hexpand">True</property> <property name="relief">none</property> <property name="xalign">0</property> + <child internal-child="accessible"> + <object class="AtkObject" id="accessibilityCheckEntryLinkButton-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryLinkButton - Acessible Name">Document accessibility issue text link button</property> + <property name="AtkObject::accessible-description" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryLinkButton - Acessible Description">This is a document accessibility issue link button, which describes the issue and provides a link, which will jump to the place of the issue in the document when clicked.</property> + </object> + </child> </object> <packing> <property name="left-attach">1</property> @@ -52,11 +60,23 @@ <property name="receives-default">True</property> <property name="halign">end</property> <property name="valign">center</property> + <child internal-child="accessible"> + <object class="AtkObject" id="accessibilityCheckEntryFixButton-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryFixButton - Acessible Name">Document accessibility issue fix button</property> + <property name="AtkObject::accessible-description" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryFixButton - Acessible Description">This is a document accessibility issue fix button, which will provide a way to fix the issue if clicked.</property> + </object> + </child> </object> <packing> <property name="left-attach">2</property> <property name="top-attach">0</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="accessibilityCheckEntryBox-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryBox - Acessible Name">Document accessibility issue container</property> + <property name="AtkObject::accessible-description" translatable="yes" context="accessibilitycheckentry|accessibilityCheckEntryBox - Acessible Description">This is a document accessibility issue container, which describes an document accessibility issue and potentially provides a solution how to fix the issue.</property> + </object> + </child> </object> </interface> |