[iOS] Accessibility of Border control breaks when Shadow is applied #26990
Labels
area-controls-border
Border
platform/iOS 🍎
t/a11y
Relates to accessibility
t/bug
Something isn't working
Milestone
Description
I have some fake buttons - a Templated ContentView that contains a Border with aTapGestureRecognizer. I am using an analytics framework that hooks into all GestureRecognizers (using method swizzling) and uses elements' accessibility identifiers to log what button was tapped.
If I don't have a Shadow present, I can see in Accessibility Inspector that the element has a button trait (from the TapGestureRecognizer) and I can see its Identifier. With the Shadow present, the gesture recognizer is applied to the Microsoft_Maui_Platform_WrapperView while the automation id / isAccessibilityElement is applied to its child Microsoft_Maui_Platform_ContentView so it breaks both accessibility (the inner, accessible element does not have the Button trait) and my analytics (tap gesture recognizer element has no accessibility identifier).
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
iOS 17
Did you find any workaround?
Put TapGestureRecognizer on controls higher in visual tree
Relevant log output
The text was updated successfully, but these errors were encountered: