Skip to content

[Bug] SemanticHeading limitations #3117

Open

Description

@rachelkang

Description

SemanticProperties.HeadingLevel doesn't work when applied to certain controls like SearchBar and ContentPage.ToolbarItem. While it doesn't work for SearchBar, the app crashes when applied to ToolbarItem.

Investigated only on Android

Steps to Reproduce

  1. Open .NET MAUI sln on recipes branch
  2. Set SemanticProperties.HeadingLevel on the SearchBar in StartingPage.xaml
  3. Set SemanticProperties.HeadingLevel on the ToolbarItem in MyRecipesPage.xaml
  4. Deploy app to Android physical device
  5. Turn on TalkBack
  6. Activate Headings mode if not already activated (use three finger horizontal swipe gears)
  7. Swipe up/down to navigate Headings on StartingPage - SearchBar will not be reached
  8. Navigate to MyRecipes page - app will crash

Expected Behavior

SemanticProperties.HeadingLevel should be applicable to ToolbarItem, as it functions with Button, a similar control. Whether it is applicable to other controls like SearchBar should be clarified and accurately reflected (in intellisense, for example).

Actual Behavior

SemanticProperties.HeadingLevel doesn't work for SearchBar and ToolbarItem.

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: VS2022 main
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: Pixel 4a

Activity

  1. added
    t/bug
    legacy-area-a11y
    on Oct 26, 2021
  2. v-longmin commented on Mar 23, 2022

    @v-longmin

    @rachelkang Could you share your repro project, thanks?

  3. added
    s/triaged
    s/needs-info
    on Mar 23, 2022
  4. added
    s/verified
    and removed
    s/needs-info
    on Mar 23, 2022
  5. added this to the 6.0.300-servicing milestone on Mar 23, 2022
  6. removed their assignment
    on Aug 3, 2022
  7. removed this from the 6.0-servicing milestone on Aug 3, 2022
  8. 8 remaining items

  9. added this to the Backlog milestone on Mar 14, 2023
  10. removed
    s/verified
    s/triaged
    on Apr 5, 2023
  11. added
    s/triaged
    on Apr 12, 2023
  12. QianaJiao commented on Apr 13, 2023

    @QianaJiao

    Verified this issue with Visual Studio Enterprise 17.6.0 Preview 2.0. Not repro on Android device with Maui Project.
    TabbedPage.zip

  13. added
    s/try-latest-version
    on Apr 13, 2023
  14. rachelkang commented on Apr 13, 2023

    @rachelkang
    MemberAuthor

    Hi, @QianaJiao - I've tested again on .NET 8 and can confirm this is still an issue. While it doesn't crash, heading is not supported on searchBar or toolBarItem.

    The repro project referenced is at https://github.com/rachelkang/recipeSearch

    That being said, please don't worry about re-validating this issue as I'm on the .NET MAUI team and have validated that it is. Thank you!

  15. ghost removed
    s/try-latest-version
    on Apr 13, 2023
  16. ramonB1996 commented on Apr 15, 2024

    @ramonB1996

    This is also an issue with ListViews and even CollectionViews: #21830

  17. added
    t/a11y
    on May 13, 2024
  18. added
    area-controls-general
    on Jun 8, 2024
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

    area-controls-generallegacy-area-a11yplatform/androids/triagedt/a11yt/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions