Rename TreeItem's alt_text to description for consistency with Accessibility API - #107540
Merged
akien-mga merged 1 commit intoJun 14, 2025
Conversation
bruvzg
approved these changes
Jun 14, 2025
Mickeon
force-pushed
the
rename-TreeItem-accessibility-alt-text-to-description
branch
from
June 14, 2025 17:11
ae20c03 to
adcfaf8
Compare
...with Accessibility API
Mickeon
force-pushed
the
rename-TreeItem-accessibility-alt-text-to-description
branch
from
June 14, 2025 17:56
adcfaf8 to
76a7c31
Compare
Member
|
Thanks! |
Mickeon
deleted the
rename-TreeItem-accessibility-alt-text-to-description
branch
June 14, 2025 22:56
BendyLand
pushed a commit
to BendyLand/voltaire
that referenced
this pull request
Aug 2, 2026
…cessibility-alt-text-to-description Rename TreeItem's `alt_text` to `description` for consistency with Accessibility API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So, basically, #76829 introduced many accessibility methods and properties across many classes, in order to assign a custom summary for assistive applications. Most commonly, this is referred to as "description":
accessibility_descriptionaccessibility_update_set_description& similar.get_action_descriptiongui_get_drag_description&gui_set_drag_descriptionIn comparison, TreeItem is the only one that refers to the same concept as "alternative text" 1:
set_alt_text,get_alt_text,set_button_alt_text. This is inconsistent, and this PR addresses that.Note that this breaks compatibility, but only with existing dev versions, as #76829 was merged during
4.5's development.Footnotes
RichTextLabel actually has an
alt_textparameter for images, which is entirely appropriate. ↩