You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This won't be quick or super easy to implement but would be nice to crack. Some things to consider:
Contrast checks shouldn't really fail for backgrounds over other backgrounds, only text. Might mean doing something like finding all the labels in a view and snapshotting the label's frame (including whatever is behind it), and checking that contrast ratio
Transparent backgrounds will throw off the test, so might be a good idea to add a white background for testing contrast by default
This should be opt-in for all tests and on a per-view basis
I wonder if we need actual snapshotting logic for this, maybe it can be done by injecting the colour of the labels font and background colours of layers, though might cause issues when images are backgrounds...
It would be really ace if it's feasible to somehow fail a test if the view fails colour contrast accessibility standards
The text was updated successfully, but these errors were encountered: