dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.86k stars 1.68k forks source link

[Enhancement] Image borders #3121

Open rachelkang opened 2 years ago

rachelkang commented 2 years ago

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:

accessible images borders

Intended Use Case

Making images more accessible

Workaround

Just use images that already have these accessible traits

hartez commented 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.