add accessibility note
commitc403b41a431c6d782663b295de30f4716fa9726a
authorMatthew Griffith <mdg.griffith@gmail.com>
dateSat 2 May 2020, 09:37 (7 years ago)
parent86fd768
notes/discussion/ColorWithoutAlpha.API.md+2
@@ -8,6 +8,8 @@ If we separate out alpha from the core color type, we can
88
992. Encourage people to use actual color mixing functions where possible or to enumerate their colors concretely.
1010 - The point here is that alpha mixing can sometimes lead to colors that don't look great or are unexpected.
11+
12+3. With a totally opaque color type, we can calculate contrast for accessibility evaluation easily. An alpha channel means we'd have to emulate browser mixing to do that, which I'm not sure is consistent.
1113
1214Ultimately I want the position of `elm-ui` to be something like the following:
1315