Skip to content
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

Error message color does not have enough contrast with default console backgrounds #71

Closed
tedchamb opened this issue Jan 30, 2018 · 7 comments

Comments

@tedchamb
Copy link
Member

The vsts cli is built on knack and we have received several customer complaints that the color of red used does not provide enough contrast with the standard console backgrounds, and is therefore hard to read. Is it possible to adjust the default error message color to a brighter red that provides more contrast? It would also be good to provide a mechanism for the consuming application to choose the colors. This way we can implement a way customers can configure this in our application if they don't like the default.

Actual feedback from customer:
The error messages are printed in dark red. That's very hard to read.
example

@ba11b0y
Copy link

ba11b0y commented Oct 26, 2018

@derekbekoe I would like to take this up.

@tjprescott
Copy link
Member

@invinciblycool that would be great!

@StingyJack
Copy link

The library should honor the hosting console's (the user's preferences) display colors and not choose an arbitrary color.

This is an accessibility issue and should be given appropriate priority. It should really not be considered a feature request.

@StingyJack
Copy link

I made this change to my local repo, but am not sure how to go about testing it where I want to see the change ultimately effected.
image

Is there a script that will make a locally usable knack that I can use in a local copy of azure-cli, that i can then build and run? Or should I just pip install the knack package into the azure-cli and edit there?

@tjprescott
Copy link
Member

If you have cloned the repo, you should be able to go to the root of that repo and run pip install -e <path to knack setup.py file> --ignore-installed.

The other option would be to modify the code in you virtual environment's site-packages folder where you have the CLI installed.

@atbagga
Copy link
Contributor

atbagga commented Apr 16, 2019

@StingyJack Here is the difference in the two colors (LIGHTRED_EX on top, RED at bottom) on windows command prompt. I also tried on powershell and the LIGHTRED_EX seems much better in contrast.

image

@tjprescott
Copy link
Member

Fixed by PR #147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants