]> cat aescling's git repositories - mastodon.git/commitdiff
Increase color contrast on privacy warning (#3015)
authorShel Raphen <shelraphen@gmail.com>
Fri, 12 May 2017 15:46:36 +0000 (11:46 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 12 May 2017 15:46:36 +0000 (17:46 +0200)
The current text contrast on the privacy warning is a WCAG violation. I didn't notice this because my instance has a custom theme which is better. On default theme I am barely able to read the text with my impaired vision. This patch brings the contrast to Normal Text WCAG AA compliance, and Large Text WCAG AAA compliance.

app/javascript/styles/components.scss

index 3d133d4d9fa770e0238ed4df1bd8731ec5f7a244..de0943d172f4cd8014585ec2ef0f2b4e2179be54 100644 (file)
 }
 
 .compose-form__warning {
-  color: darken($ui-secondary-color, 33%);
+  color: darken($ui-secondary-color, 65%);
   margin-bottom: 15px;
   background: $ui-primary-color;
   box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);