Skip to content

fix(ui): fix click event for a11y - #879

Merged
TheOneRing merged 3 commits into
mainfrom
fix/a11y-space-browser
Aug 24, 2026
Merged

TheOneRing merged 3 commits into
mainfrom
fix/a11y-space-browser

Conversation

@saw-jan

@saw-jan saw-jan commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: #876 (comment)

Accessible.onPressAction: {...}

This allows the a11y tools to perform the click action on the element, same action as done inside onClicked

Adjust the tests after this merge:

@saw-jan saw-jan self-assigned this Apr 23, 2026
@saw-jan
saw-jan requested a review from TheOneRing April 23, 2026 04:11
@saw-jan
saw-jan changed the base branch from test/port-to-appium to main April 23, 2026 04:11
@saw-jan
saw-jan force-pushed the fix/a11y-space-browser branch from b9ed968 to 5659654 Compare April 23, 2026 04:12
@saw-jan
saw-jan marked this pull request as ready for review April 23, 2026 04:13
@saw-jan
saw-jan requested a review from dragotin April 23, 2026 06:19
@saw-jan saw-jan changed the title fix(ui): fix space selection for a11y fix(ui): fix click event for a11y Apr 24, 2026
@saw-jan
saw-jan force-pushed the fix/a11y-space-browser branch from 2062276 to a800140 Compare July 17, 2026 04:27

@guruz guruz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't tested this but looks OK to me

ToolTip.delay: 500

Accessible.name: accountState.account.displayNameWithHost
Accessible.onPressAction: {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is the account button special, shouldn't all buttons in the top bar require this special handling?
I see why it might be needed for the space view, where we use a custom MouseArea

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes true, same issue happens for settings and other topbar items.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Except Add Account button item. Other topbar items have Accessible.role: Accessible.PageTab which is the cause for the issue and we need Accessible.onPressAction to for those tabs as well.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aaaah I see, thank you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Follow up PR #1045

@TheOneRing
TheOneRing merged commit 1044bac into main Aug 24, 2026
13 checks passed
@TheOneRing
TheOneRing deleted the fix/a11y-space-browser branch August 24, 2026 11:43
@saw-jan

saw-jan commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

I will do the follow up PR for other tabs

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants