Skip to content

Conversation

@rparth07
Copy link
Contributor

@rparth07 rparth07 commented Nov 21, 2025

Change:

  1. Introduced new methods to add ARIA attributes in the following priority for all types of element
    1. label's for attribute ( only for labelable elements)
    2. aria-labelledby
    3. aria-label
  2. Updated _fixedtextControl method to also prioritize for attribute before referencing with aria-labelledby for labelable elements
  3. Updated relevant places to use this new methods

As this can act as a common solution for ARIA attribute related issue. we no longer need change in #13526 and #13527 but relevant core patches still needed.

  1. https://gerrit.libreoffice.org/c/core/+/194228
  2. https://gerrit.libreoffice.org/c/core/+/194232

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

…ndling in label updates

This change will prioritize label's 'for' attribute for labelable elements or add 'aria-labelledby' attribute otherwise

Signed-off-by: Parth Raiyani <[email protected]>
Change-Id: If7f08685daa2c26643baee819abfb8c74dd5d98a
… aria label handling

Change-Id: Ib8a0336da6ae06df911dd32ef32b45fcca2e9519
Signed-off-by: Parth Raiyani <[email protected]>
…ts in JSDialog

This method will first prioritize 'aria-labelledby' and then 'aria-label'. we can simply call this method from anywhere to add aria attributes correctly

Change-Id: I2de47882e3d34f90f15ed2518d609c997e33b38a
Signed-off-by: Parth Raiyani <[email protected]>
…belable elements in JSDialog components

This method applies labels in the following priority:
1. <label> with 'for' attribute pointing to the element but used only if the label correctly references this element
2. aria-labelledby referencing an existing element and apply only if no label element exist or label's for attribute doesn't match
3. aria-label used as fallback when <label> or labelledBy does not exist

All relevant changes are made to ensure above priority. This common method will be useful for adding ARIA attributes in future

Change-Id: Ia4e5bcbf2e613cdc964b398392ca7fd82a670a0b
Signed-off-by: Parth Raiyani <[email protected]>
…ssibility using SetupA11yLabelForLabelableElement

Signed-off-by: Parth Raiyani <[email protected]>
Change-Id: Id8bd3255dc1130b0ac54911135fce6240dc60cf6
…for improved screen reader support

Signed-off-by: Parth Raiyani <[email protected]>
Change-Id: I0207c7c914034160fa9a01f4135beac2be637cbf
@rparth07 rparth07 force-pushed the private/rparth07/a11y-aria-attr-fix branch from e3d10fb to f7520ed Compare November 21, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

1 participant