-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contrast ratios should account for alpha transparency #91
Comments
Similarly, CCAe does alpha (but only for the foreground, since if you start doing it for background as well, you have to always make an assumption (generally, white) for what's behind that particular colour https://github.com/ThePacielloGroup/CCAe |
Because #106 will handle background colors with alpha, this will just be limited to addressing alpha in the foreground color. In essence, contrast is a measure of the difference between two displayed colors. Foreground colors with alpha are not displayed as transparent, but rather as a third color mixed with the background color. Ideally, we would want to get the contrast between the background and the mixed color, which requires us to compute a mixed color. In practice, that mixed color is computed at display time, based on the display's settings. If we calculate the mixed color in the space that the other colors are defined in, we're not doing a similar calculation. This can lead to a range of results, even between monitors on the same computer. Because color mixing for monitors is done in an RGB space, we'll do all the mixing in Despite the fuzziness that comes into play when alpha is involved, it is useful for designers to see an approximation of what the mixed color will be and what its contrast is, so that they can see approximately what level of transparency still passes. |
We may just want to mark this as approximate in some way? |
@mirisuzanne @stacyk Background Alpha Alert + Color Issue Info Foreground Alpha Alert Mobile Alerts + Color Issue Info Mobile Alerts + Color Issue Info 2 |
@SondraE I think the first and last link are the same, no? Is that the intention? |
https://www.figma.com/file/JtQTGIpwoaOcqcWfsoeOk1/Browser-bugs-%26-other-warnings?type=design&node-id=5-146&mode=design&t=fz0z6iKhkUnjtRs7-4 this might be the link for the first one |
This is the same set of issues and links provided in the other story, right? I guess we don't need to break out individual stories - but it might be helpful to clarify which designs are related to which issue :) |
Scope
Mockups
Background Alpha Alert + Color Issue Info
https://www.figma.com/file/JtQTGIpwoaOcqcWfsoeOk1/Browser-bugs-%26-other-warnings?type=design&node-id=112-2&mode=design&t=lOyosYvXrteuMN5Z-0
Foreground Alpha Alert
https://www.figma.com/file/JtQTGIpwoaOcqcWfsoeOk1/Browser-bugs-%26-other-warnings?type=design&node-id=12%3A348&mode=design&t=4CwzTDrU2fakSiQ4-1
Mobile Alerts + Color Issue Info
https://www.figma.com/file/JtQTGIpwoaOcqcWfsoeOk1/Browser-bugs-%26-other-warnings?type=design&node-id=83%3A10&mode=design&t=4CwzTDrU2fakSiQ4-1
Mobile Alerts + Color Issue Info 2
https://www.figma.com/file/JtQTGIpwoaOcqcWfsoeOk1/Browser-bugs-%26-other-warnings?type=design&node-id=83%3A11&mode=design&t=4CwzTDrU2fakSiQ4-1
Requested on social media:
The text was updated successfully, but these errors were encountered: