Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve accessibility of tab widgets #7270

Merged
merged 9 commits into from
Jan 6, 2025

Conversation

DataTriny
Copy link
Contributor

This PR greatly improve the accessibility of the TabWidget as well as the other tab widget implementation in the gallery example.

There is one annoying issue left with the gallery example: since the sidebar also contain a label at the top, this label is the first element to get focus as far as AccessKit is concerned. I think this is due to the fact that accessible-delegate-focus does not ignore non-focusable items when building AccessKit tree updates. It is not strictly linked to tab widgets so I'm not including the fix in this PR.

Suggested Changelog entries:

  • Improve overall accessibility of tab widgets
  • Add AccessibleRole::TabPanel

@DataTriny DataTriny force-pushed the tab-accessibility-fixes branch from 591319e to b8cdd38 Compare January 4, 2025 16:48
@DataTriny DataTriny force-pushed the tab-accessibility-fixes branch 2 times, most recently from 4251448 to 359f428 Compare January 4, 2025 17:41
@DataTriny DataTriny force-pushed the tab-accessibility-fixes branch from 359f428 to c9c97d9 Compare January 4, 2025 17:56
@DataTriny
Copy link
Contributor Author

I forgot to mention that testing with assistive technologies currently rely on this AccessKit PR as it improve selection events and implement the size_of_set and position_in_set properties.

I haven't tested the Qt backend myself, only made sure unit tests pass.

Copy link
Member

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot.

I really appreciate your contributions. An particularly the fact that they are well tested with auto tests.

Copy link
Member

@tronical tronical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, amazing work.

@tronical tronical merged commit 9c25040 into slint-ui:master Jan 6, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants