vcl/source/window/window.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 191623706be6af759362ff602645e053df013af2
Author:     Parth Raiyani <[email protected]>
AuthorDate: Fri Feb 6 14:19:00 2026 +0530
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Feb 9 09:24:54 2026 +0100

    a11y: enhance accessibility by adding labelForType to JSON output
    
    - this will be used to detect the reference element type and based on that 
render it as <label> or <span>
    
    Signed-off-by: Parth Raiyani <[email protected]>
    Change-Id: Ia08f88d0a5049b2545e61003393bfb0b2d8c8480
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198833
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 60d6764b276c..4d63615a46c4 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3414,7 +3414,10 @@ void Window::DumpAsPropertyTree(tools::JsonWriter& 
rJsonWriter)
 
     vcl::Window* pAccLabelFor = getAccessibleRelationLabelFor();
     if (pAccLabelFor)
+    {
         rJsonWriter.put("labelFor", pAccLabelFor->get_id());
+        rJsonWriter.put("labelForType", 
windowTypeName(pAccLabelFor->GetType()));
+    }
 
     vcl::Window* pAccLabelledBy = GetAccessibleRelationLabeledBy();
     if (pAccLabelledBy)

Reply via email to