Skip to content

[BUG] [Android] Popup V2 - Accessibility: screen reader focus issue #2865

Open

Description

@FabriBertani

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

On Android, when TalkBack or a screen reader is enabled and a popup opens, the screen reader's focus is placed on the general popup window, reading all the text and semantic properties, but it does not allow you to focus on individual elements of the pop-up, only on the buttons or Entry for example.

Screen_Recording_20250827_114222.mp4

Expected Behavior

Be able to click or navigate through the elements of the popup with the screen reader, just like in iOS.

Steps To Reproduce

  1. Enable TalkBack or the screen reader in an Android phone.
  2. Open the app from the repro project.
  3. Click to open any of the popups.
  4. Try to click any content of the popup to focus the screen reader.
  5. Try to click the buttons or the Entry of the popup to focus the screen reader.

Link to public reproduction project repository

https://github.com/FabriBertani/PopupV2TalkBackBugRepro

Environment

- .NET MAUI CommunityToolkit: 12.2.0
- OS: Windows 11, Mac OS 15.6
- .NET MAUI: 9.0.90

Anything else?

I believe this is related to the fact that the new popups are actually a ContentPage navigated as a modal, which is why the screen reader tends to focus on the entire screen rather than the popup contents.

Activity

  1. WilliamWatterson86 commented on May 6, 2026

    @WilliamWatterson86

    @FabriBertani - did you find a workaround for this?

  2. FabriBertani commented on May 6, 2026

    @FabriBertani
    ContributorAuthor

    @FabriBertani - did you find a workaround for this?

    @WilliamWatterson86 Unfortunately not

  3. IeuanWalker commented on May 7, 2026

    @IeuanWalker
    Contributor

    My existing PR fixes this #2959

  4. FabriBertani commented on May 8, 2026

    @FabriBertani
    ContributorAuthor

    Thanks @IeuanWalker, based on your fix, I made a workaround to the current version (because we cannot upgrade to .Net10 at the moment).

    For some reason, we need to add the IQueryAttributable to our popups and put this at the end of the method:

    void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, object> query)
    {
        ...
    
        var parent = this.Parent;
        
        while (parent is not null)
        {
            if (parent.Parent is not null)
            {
                AutomationProperties.SetIsInAccessibleTree(parent.Parent, false);
    
                break;
            }
        }
    }

    FYI @WilliamWatterson86

  5. WilliamWatterson86 commented on May 11, 2026

    @WilliamWatterson86

    Thanks @FabriBertani,

    I added that method in to my popup, unfortunately I cant select anything inside the popup. It looks like its about to select (Blue border comes around the label) then jumps back out to full screen and says "unlabeled".

  6. WilliamWatterson86 commented on Jun 12, 2026

    @WilliamWatterson86

    @IeuanWalker

    I installed the latest version of MCT and I know your fix is in there.

    I am still having the issues with the popups and Talkback. When I tap on anything in the popup it just says "unlabeled" and the outer screen is selected.

    I cloned the MCT repo and ran the sample app on my Google Pixel (Android 16). Please see video below.

    I tried the sample app on an Samsung S21 (Android 12) - the label is read out but it does not retain focus.

    Can you confirm what phones / android versions your fix works on?

    Thanks!

    IMG_2400.zip

  7. IeuanWalker commented on Jun 12, 2026

    @IeuanWalker
    Contributor

    @WilliamWatterson86 strange, would have been on the Pixel 6 android 16

    Will check it again later if i have time

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions