Repository navigation
Open
Labels
area-controls-generalGeneral issues that span multiple controls, or common base classes such as View or Elementlegacy-area-a11yRelates to accessibilityplatform/androids/triagedIssue has been reviewedt/a11yRelates to accessibilityt/bugSomething isn't working
Milestone
Description
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
- Open .NET MAUI sln on recipes branch
- Set
SemanticProperties.HeadingLevelon theSearchBarin StartingPage.xaml - Set
SemanticProperties.HeadingLevelon theToolbarItemin MyRecipesPage.xaml - Deploy app to Android physical device
- Turn on TalkBack
- Activate Headings mode if not already activated (use three finger horizontal swipe gears)
- Swipe up/down to navigate Headings on StartingPage - SearchBar will not be reached
- 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
Metadata
Metadata
Assignees
Labels
area-controls-generalGeneral issues that span multiple controls, or common base classes such as View or Elementlegacy-area-a11yRelates to accessibilityplatform/androids/triagedIssue has been reviewedt/a11yRelates to accessibilityt/bugSomething isn't working
Activity
v-longmin commentedon Mar 23, 2022
@rachelkang Could you share your repro project, thanks?
8 remaining items
QianaJiao commentedon Apr 13, 2023
Verified this issue with Visual Studio Enterprise 17.6.0 Preview 2.0. Not repro on Android device with Maui Project.
TabbedPage.zip
rachelkang commentedon Apr 13, 2023
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!
ramonB1996 commentedon Apr 15, 2024
This is also an issue with ListViews and even CollectionViews: #21830