cashapp / AccessibilitySnapshot

Easy regression testing for iOS accessibility
Apache License 2.0
550 stars 69 forks source link

Provide higher contrast marker labels for host applications set to dark mode #174

Closed nononoah closed 9 months ago

nononoah commented 9 months ago

Warning: I have not yet verified if this is reproducible outside of my test application.

When testing in host applications with a user interface style of dark, it appears that accessibility snapshots produce rather low contrast marker labels.

In light mode: testVariants accessibility

In dark mode: testVariants accessibility

Ideally, we'd use a text color which is better guaranteed to contrast.

NickEntin commented 9 months ago

Ahh good find! I always run test host applications in light mode, so totally missed it was defaulting to a dynamic color. Thanks for the bug report!