I think adding some extra info like Heading or Selected would be helpful, maybe even more if it fits the circumstance. Not sure if it would be best to just add it here or make AccessibilityRenderExtension take in some properties for that. The way that it currently only picks one also means that we can't see both the text and the role if they're both present, for example.
This is currently how the text to be shown on the accessibility pane is chosen:
I think adding some extra info like
Heading
orSelected
would be helpful, maybe even more if it fits the circumstance. Not sure if it would be best to just add it here or makeAccessibilityRenderExtension
take in some properties for that. The way that it currently only picks one also means that we can't see both the text and the role if they're both present, for example.