Skip to content

Do not explicitly color messages in white - #4689

Merged
HyperBrain merged 1 commit into
serverless:masterfrom
koterpillar:no-white-on-white
Feb 2, 2018
Merged

HyperBrain merged 1 commit into
serverless:masterfrom
koterpillar:no-white-on-white

Conversation

@koterpillar

Copy link
Copy Markdown
Contributor

What did you implement:

Closes #4673

Do not color any messages in white as it is unreadable on white background

How did you implement it:

Remove any explicit calls to chalk.white so that no white text is output, and instead the default terminal color (e.g. black) is used.

This is consistent with the existing handling of black background as there are no explicit calls to chalk.black anywhere.

How can we verify it:

  • Configure a terminal to have a black-on-white color scheme
  • Use sls invoke to display a function output
  • Or, try causing an error to display a "Serverless Error" message
  • All the text in the error messages and the invocation output should be readable as well as it is on a white-on-black terminal.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

On white background terminals, white text is unreadable. Use the default
terminal color instead.

Fixes #4673
@horike37 horike37 added this to the 1.27 milestone Jan 29, 2018

@HyperBrain HyperBrain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@HyperBrain
HyperBrain merged commit 02bb0df into serverless:master Feb 2, 2018
@koterpillar
koterpillar deleted the no-white-on-white branch January 22, 2022 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants