This PR adds Disabled: "true" to the accessibility explanation when SemanticsProperties.Disabled is set (in Compose code).
I also included a test that includes UI elements for all the different semantic properties that are currently being printed.
Background
We started using Dump.AccessibilityExplanation for a11y testing recently, and I noticed when working on Buttons that the output would be the same regardless of them being enabled or disabled. It made me wonder whether the enabled property was set correctly, so I thought it'd be good to reflect this in the test output.
This PR adds
Disabled: "true"
to the accessibility explanation whenSemanticsProperties.Disabled
is set (in Compose code). I also included a test that includes UI elements for all the different semantic properties that are currently being printed.Background
We started using
Dump.AccessibilityExplanation
for a11y testing recently, and I noticed when working on Buttons that the output would be the same regardless of them being enabled or disabled. It made me wonder whether theenabled
property was set correctly, so I thought it'd be good to reflect this in the test output.