Open rachelkang opened 2 years ago
We can accomplish this manually with Borders. So one option would be for that property to specify a contrast color, and we automatically wrap the Image in a Border of that color.
Would it be useful to have this for all controls, rather than just Image? I wonder if this something we want at the IView level, or maybe in the semantic properties.
Summary
Disclaimer: I'm not sure how feasible this is and have not looked into it at all yet!
Many images, especially ones consisting of multiple colors and a transparent background, do not have sufficient color contrast against their background. This leads to a failure to meet accessibility requirements.
Images can easily be made more accessible (with regard to color contrast) by adding a single color border/outline that contrasts against the background. So, if we could introduce a property to enable image outlines/borders, that could be super helpful for accessibility.
Inspiration
I came across this when I had issues with images in my recipes app:
Intended Use Case
Making images more accessible
Workaround
Just use images that already have these accessible traits