Skip to content

Commit

Permalink
Merge pull request #10 from LegoStormtroopr/zoo2.0
Browse files Browse the repository at this point in the history
More minor fixes
  • Loading branch information
LegoStormtroopr committed Sep 12, 2017
2 parents a66f06d + 03885af commit c53bc16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/html/molerat-color-contrast-bad-fonts.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
And just a bit bigger.
</p>
</div>
<div style="font-size:17px; color:lightgray; background-color:#B14B10" data-wcag-failure-code="molerat-1">
<div style="font-size:17pt; color:lightgray; background-color:#B14B10" data-wcag-failure-code="molerat-1">
Here is text specified in pixels with a contrast ratio of 3.6 - this will never pass AAA compliance.
<p class="bigger-text" data-wcag-failure-code="molerat-2">
Doesn't matter how big this is, its still too low contrast.
Expand Down
1 change: 0 additions & 1 deletion tests/html/molerat-color-contrast-mobile-hate.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<p>
Welcome to my page!
</p>
</div>
</body>
</html>

Expand Down
2 changes: 1 addition & 1 deletion wcag_zoo/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.2.1'
version = '0.2.2'
2 changes: 2 additions & 0 deletions wcag_zoo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ def cli(*args, **kwargs):
if verbosity == 1:
if len(results['failures']) > 0:
print('\x1b[1;31m' + 'failed' + '\x1b[0m')
elif warnings_as_errors and len(results['warnings']) > 0:
print('\x1b[1;33m' + 'failed (on warnings only)' + '\x1b[0m')
else:
print('\x1b[1;32m' + 'ok' + '\x1b[0m')
else:
Expand Down

0 comments on commit c53bc16

Please sign in to comment.