Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Set toolkit name and version in the accessibility tree - #25167

#25167
Open
DataTriny wants to merge 1 commit into
bevyengine:mainbevyengine/bevy:mainfrom
DataTriny:accesskit-tree-infoDataTriny/bevy:accesskit-tree-infoCopy head branch name to clipboard
Open

Set toolkit name and version in the accessibility tree#25167
DataTriny wants to merge 1 commit into
bevyengine:mainbevyengine/bevy:mainfrom
DataTriny:accesskit-tree-infoDataTriny/bevy:accesskit-tree-infoCopy head branch name to clipboard

Conversation

@DataTriny

Copy link
Copy Markdown
Contributor

Objective

Some platform accessibility stacks (Windows and Linux) allow applications to communicate to assistive technologies which UI toolkit is used. This can be useful for assistive technology developers to investigate issues, to know where to report bugs or even to automatically patch malformed accessibility trees produced by certain applications or UI toolkits. Since accesskit 0.24.1, we set the toolkit name as "AccessKit" by default to at least redirect people to AccessKit, but it is better if downstream projects set the correct value themselves.

Solution

Populate toolkit_name and toolkit_version when building an AccessKit Tree struct. I used env!("CARGO_PKG_VERSION") to get Bevy's current version which works because all crates currently share the same, this would of course report the wrong value if this ever changed.

Testing

On Windows I ran the button UI example and used the NVDA screen reader's NVDA+F1 command to get information on the focused widget. I observed that the UIAutomation ProviderDescription property correctly contained "Bevy 0.20.0-dev".

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy A-Accessibility A problem that prevents users with disabilities from using Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 26, 2026
@alice-i-cecile

Copy link
Copy Markdown
Member

Very reasonable, thanks for fixing this upstream <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Accessibility A problem that prevents users with disabilities from using Bevy D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.